diff options
author | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-09-09 23:26:26 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-09-09 23:26:26 +0200 |
commit | 0bed9611730fc434dd55175bc947dc09fc430710 (patch) | |
tree | 0f9dfd3e77f56ffc2ce1a1df413cd8b2fa8034c6 /ldap/constraint.ldif | |
parent | 09ca4fea45f2548d429a59a742593ebb5ebcbfab (diff) |
SASL proxy authorization.
Diffstat (limited to 'ldap/constraint.ldif')
-rw-r--r-- | ldap/constraint.ldif | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ldap/constraint.ldif b/ldap/constraint.ldif new file mode 100644 index 0000000..555be85 --- /dev/null +++ b/ldap/constraint.ldif @@ -0,0 +1,28 @@ +# Load this file with +# +# ldapadd -Y EXTERNAL -H ldapi:/// -f constraint.ldif +# +# It will load the "constraint" overlay configuration for the database #1. +# Ensure that it's indeed the database #1 that you want to configure: +# +# ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b "cn=config" "olcSuffix=o=mailHosting,dc=fripost,dc=dev" dn +# +# +# References: +# - http://www.openldap.org/doc/admin24/overlays.html#Constraints +# - man 5 slapo-constraint + + +dn: olcOverlay=constraint,olcDatabase={1}hdb,cn=config +objectClass: olcOverlayConfig +objectClass: olcConstraintConfig +olcOverlay: constraint +olcConstraintAttribute: fvd regex ^.+\..+$ +olcConstraintAttribute: fvu regex ^.+$ +olcConstraintAttribute: fva regex ^.+$ +olcConstraintAttribute: fvl regex ^.+$ +olcConstraintAttribute: fripostMaildrop regex ^.*@.+\..+$ +olcConstraintAttribute: fripostOptionalMaildrop regex ^.*@.+\..+$ +olcConstraintAttribute: fripostListCommand regex ^.+-.+$ +olcConstraintAttribute: fripostListManager regex ^(mailman|schleuder)$ +olcConstraintAttribute: userPassword count 1 |