Creating An Instance Of The Attribute Uniqueness Plug-In - Netscape DIRECTORY SERVER 6.1 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

Creating an Instance of the Attribute Uniqueness Plug-In

Creating an Instance of the Attribute Uniqueness
Plug-In
If you want to ensure that a particular attribute in your directory always has
unique values, you must create an instance of the attribute uniqueness plug-in for
the attribute you want to check. For example, if you want to ensure that every entry
in your directory that includes a
attribute, you must create a mail uniqueness plug-in.
To create an instance of the attribute uniqueness plug-in, you must modify the
dse.ldif
cn=plugins,cn=config
syntax described in "Attribute Uniqueness Plug-In Syntax," on page 481.
For example, to instantiate the attribute uniqueness plug-in for the mail attribute,
you would perform the following steps:
In the
1.
uniqueness,cn=plugins,cn=config
Add the following lines for the mail uniqueness plug-in entry before or after
2.
the uid uniqueness plug-in entry:
dn: cn=mail uniqueness,cn=plugins,cn=config
objectClass: top
objectClass: nsSlapdPlugin
objectClass: extensibleObject
cn: mail uniqueness
nsslapd-pluginPath: /usr/netscape/servers/lib/uid-plugin.extension
nsslapd-pluginInitfunc: NSUniqueAttr_Init
nsslapd-pluginType: preoperation
nsslapd-pluginEnabled: on
nsslapd-pluginarg0: mail
nsslapd-pluginarg1: dc=example,dc=com
nsslapd-plugin-depends-on-type: database
nsslapd-pluginId: NSUniqueAttr
nsslapd-pluginVersion: 6.1
nsslapd-pluginVendor: Netscape Communications Corporation
nsslapd-pluginDescription: Enforce unique attribute values
Restart Directory Server.
3.
In this example, the uniqueness check will be performed on every entry in the
dc=example,dc=com
484
Netscape Directory Server Administrator's Guide • August 2002
file to add an entry for the new plug-in under the
entry. The format of the new entry must conform to the
file, locate the entry for the uid uniqueness plug-in,
dse.ldif
entry that includes the
attribute has a unique value for that
mail
.
attribute.
mail
cn=uid

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents