aboutsummaryrefslogtreecommitdiffstats
path: root/modules/openldap
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-12-17 00:50:53 +0000
committerMichael Scherer <misc@mageia.org>2010-12-17 00:50:53 +0000
commit9ff133a6d7901dcd733c7037ab0fe7f2e9cb38e6 (patch)
tree1a3b5c618bc20608ced643c11665da981f40d463 /modules/openldap
parent279a8a29c372aa8bbb4b9641eeb7b9b77ae44f52 (diff)
downloadpuppet-9ff133a6d7901dcd733c7037ab0fe7f2e9cb38e6.tar
puppet-9ff133a6d7901dcd733c7037ab0fe7f2e9cb38e6.tar.gz
puppet-9ff133a6d7901dcd733c7037ab0fe7f2e9cb38e6.tar.bz2
puppet-9ff133a6d7901dcd733c7037ab0fe7f2e9cb38e6.tar.xz
puppet-9ff133a6d7901dcd733c7037ab0fe7f2e9cb38e6.zip
ensure that email are unique at ldap level
Diffstat (limited to 'modules/openldap')
-rw-r--r--modules/openldap/templates/slapd.conf3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/openldap/templates/slapd.conf b/modules/openldap/templates/slapd.conf
index fe10d95d..4444e974 100644
--- a/modules/openldap/templates/slapd.conf
+++ b/modules/openldap/templates/slapd.conf
@@ -32,6 +32,7 @@ moduleload syncprov.la
moduleload ppolicy.la
#moduleload refint.la
moduleload memberof.la
+moduleload unique.la
TLSCertificateFile /etc/ssl/openldap/ldap.pem
TLSCertificateKeyFile /etc/ssl/openldap/ldap.pem
@@ -84,6 +85,8 @@ ppolicy_default "cn=default,ou=Password Policies,<%= dc_suffix %>"
ppolicy_hash_cleartext yes
ppolicy_use_lockout yes
+overlay unique
+unique_uri ldap:///?mail?sub?
# uncomment if you want to automatically update group
# memberships when an user is removed from the tree