From 243276702fb06b299247892ae16edfdd35d57f58 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 16 Apr 2019 00:23:55 +0200 Subject: [PATCH] Add unique overlay --- fixtures/00_config.ldif | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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