Creating an Instance of the Attribute Uniqueness Plug-In472 Netscape Directory Server Administrator’s Guide • January 2002Creating an Instance of the Attribute UniquenessPlug-In If you want to ensure that a particular attribute in your directory always hasunique values, you must create an instance of the attribute uniqueness plug-in forthe attribute you want to check. For example, if you want to ensure that every entryin your directory that includes a mail attribute has a unique value for thatattribute, you must create a mail uniqueness plug-in.To create an instance of the attribute uniqueness plug-in, you must modify thedse.ldif file to add an entry for the new plug-in under thecn=plugins,cn=config entry. The format of the new entry must conform to thesyntax described in “Attribute Uniqueness Plug-In Syntax,” on page 469.For example, to instantiate the attribute uniqueness plug-in for the mail attribute,you would perform the following steps:1. In the dse.ldif file, locate the entry for the uid uniqueness plug-in, cn=uiduniqueness,cn=plugins,cn=config.2. Add the following lines for the mail uniqueness plug-in entry before or afterthe uid uniqueness plug-in entry:dn: cn=mail uniqueness,cn=plugins,cn=configobjectClass: topobjectClass: nsSlapdPluginobjectClass: extensibleObjectcn: mail uniquenessnsslapd-pluginPath: /usr/netscape/servers/lib/uid-plugin.extensionnsslapd-pluginInitfunc: NSUniqueAttr_Initnsslapd-pluginType: preoperationnsslapd-pluginEnabled: onnsslapd-pluginarg0: mailnsslapd-pluginarg1: dc=example,dc=comnsslapd-plugin-depends-on-type: databasensslapd-pluginId: NSUniqueAttrnsslapd-pluginVersion: 6.0nsslapd-pluginVendor: Netscape Communications Corporationnsslapd-pluginDescription: Enforce unique attribute values3. Restart Directory Server.In this example, the uniqueness check will be performed on every entry in thedc=example,dc=com entry that includes the mail attribute.