from the Command-Line

dn: cn=mail uniqueness,cn=plugins,cn=config

...

nsslapd-pluginEnabled: on

nsslapd-pluginarg0: attribute=mail

nsslapd-pluginarg1: markerObjectClass=ou

nsslapd-pluginarg2: requiredObjectClass=person

...

The markerObjectClass or requiredObjectClass keywords cannot be repeated by incrementing the counter in the nsslapd-pluginarg attribute suffix. These keywords can only be used once per Attribute Uniqueness Plug-in instance.

NOTE

The nsslapd-pluginarg0attribute always contains the name of the attribute for which to ensure uniqueness.

5. Attribute Uniqueness Plug-in Syntax Examples

This section contains examples of Attribute Uniqueness Plug-in syntax in the dse.ldif file.

Section 5.1, “Specifying One Attribute and One Subtree”

Section 5.2, “Specifying One Attribute and Multiple Subtrees”

5.1. Specifying One Attribute and One Subtree

This example configures the plug-in to ensure the uniqueness of the mail attribute under the

dc=example,dc=com subtree.

dn: cn=mail uniqueness,cn=plugins,cn=config

...

nsslapd-pluginEnabled: on

nsslapd-pluginarg0: mail

nsslapd-pluginarg1: dc=example,dc=com

...

5.2. Specifying One Attribute and Multiple Subtrees

It is possible use a single plug-in instance to check for the uniqueness of an attribute within multiple subtrees, which means that the attribute value must be unique within each subtree but not unique across all subtrees. This example configures the Attribute Uniqueness Plug-in to ensure the uniqueness of the mail attribute for separate subtrees, l=Chicago,dc=example,dc=com and l=Boston,dc=example,dc=com.

511

Page 531
Image 531
HP UX Red Hat Direry Server Software manual Attribute Uniqueness Plug-in Syntax Examples, From the Command-Line