diff --git a/fixtures/00_config.ldif b/fixtures/00_config.ldif index e3042ab..6ec3eff 100644 --- a/fixtures/00_config.ldif +++ b/fixtures/00_config.ldif @@ -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