Add unique overlay

This commit is contained in:
paul 2019-04-16 00:23:55 +02:00
parent 7630631c67
commit 243276702f

View file

@ -92,6 +92,14 @@ cn: module{3}
olcModulePath: /usr/lib/ldap
olcModuleLoad: ppolicy.la
# Load unique module
dn: cn=module{4},cn=config
objectClass: olcModuleList
objectClass: top
cn: module{4}
olcModulePath: /usr/lib/ldap
olcModuleLoad: unique.la
# Set defaults for the backend
dn: olcBackend=mdb,cn=config
objectClass: olcBackendConfig
@ -183,3 +191,13 @@ objectClass: olcPPolicyConfig
objectClass: top
olcOverlay: {2}ppolicy
olcPPolicyDefault: cn=Default,ou=Policies,@SUFFIX@
# unique enforces attribute uniqueness
dn: olcOverlay={3}unique,olcDatabase={1}mdb,cn=config
objectClass: olcConfig
objectClass: olcOverlayConfig
objectClass: olcUniqueConfig
objectClass: top
olcOverlay: {3}unique
olcUniqueUri: ldap:///ou=People,@SUFFIX@?uid?sub
olcUniqueUri: ldap:///ou=People,@SUFFIX@?uidNumber?sub