From 3fdf9abfce71e0d32f6fc8e5a3b699b663fc5ead Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 25 Feb 2009 13:50:43 -0500 Subject: Enforce netgroup uniqueness, allow netgroups to be members of netgroups When adding an entry, convert a constraint violation of "already exists" into a DuplicateEntry exception so the user gets a useful response --- install/share/unique-attributes.ldif | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'install') diff --git a/install/share/unique-attributes.ldif b/install/share/unique-attributes.ldif index 82ec52d1c..764c6320d 100644 --- a/install/share/unique-attributes.ldif +++ b/install/share/unique-attributes.ldif @@ -16,6 +16,24 @@ nsslapd-pluginVersion: 1.1.0 nsslapd-pluginVendor: Fedora Project nsslapd-pluginDescription: Enforce unique attribute values +dn: cn=netgroup uniqueness,cn=plugins,cn=config +changetype: add +objectClass: top +objectClass: nsSlapdPlugin +objectClass: extensibleObject +cn: netgroup uniqueness +nsslapd-pluginPath: libattr-unique-plugin +nsslapd-pluginInitfunc: NSUniqueAttr_Init +nsslapd-pluginType: preoperation +nsslapd-pluginEnabled: on +nsslapd-pluginarg0: cn +nsslapd-pluginarg1: cn=ng,cn=alt,$SUFFIX +nsslapd-plugin-depends-on-type: database +nsslapd-pluginId: NSUniqueAttr +nsslapd-pluginVersion: 1.1.0 +nsslapd-pluginVendor: Fedora Project +nsslapd-pluginDescription: Enforce unique attribute values + #dn: cn=uid uniqueness,cn=plugins,cn=config #objectClass: top #objectClass: nsSlapdPlugin -- cgit