aboutsummaryrefslogtreecommitdiffstats
path: root/modules/openldap
diff options
context:
space:
mode:
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