Attribute Uniqueness Plug-in Syntax Examples
Chapter 17
Using the Attribute Uniqueness Plug-in
539
For example, if you check the uniqueness of the
attribute, it is probably
necessary to perform the check only when you add or modify entries that contain
the
person
or
inetorgperson
object class.
You can restrict the scope of the check by using the
requiredObjectClass
keyword, as shown in the following example:
dn: cn=mail uniqueness,cn=plugins,cn=config
objectClass: top
objectClass: nsSlapdPlugin
objectClass: extensibleObject
cn: mail uniqueness
nsslapd-pluginPath:
/opt/redhat-ds/servers/lib/attr-unique-plugin.so
nsslapd-pluginInitfunc: NSUniqueAttr_Init
nsslapd-pluginType: preoperation
nsslapd-pluginEnabled: on
nsslapd-pluginarg0:
attribute=mail
nsslapd-pluginarg1:
markerObjectClass=ou
nsslapd-pluginarg2:
requiredObjectClass=person
nsslapd-plugin-depends-on-type: database
nsslapd-pluginId: NSUniqueAttr
nsslapd-pluginVersion: 7.1
nsslapd-pluginVendor: Red Hat, Inc.
nsslapd-pluginDescription: Enforce unique attribute values.
You cannot repeat the
markerObjectClass
or
requiredObjectClass
keywords
by incrementing the counter in the
nsslapd-pluginarg
attribute suffix.
Attribute Uniqueness Plug-in Syntax Examples
This section contains examples of Attribute Uniqueness Plug-in syntax in the
dse.ldif
file.
• Specifying One Attribute and One Subtree
• Specifying One Attribute and Multiple Subtrees
NOTE
The
nsslapd-pluginarg0
attribute always contains the name of
the attribute for which you want to ensure uniqueness.
Summary of Contents for DIRECTORY SERVER 7.1
Page 1: ...Administrator s Guide Red Hat Directory Server Version7 1 May 2005 Updated February 2009 ...
Page 20: ...20 Red Hat Directory Server Administrator s Guide May 2005 Glossary 619 Index 635 ...
Page 22: ...22 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 26: ...26 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 78: ...Maintaining Referential Integrity 78 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 200: ...Assigning Class of Service 200 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 488: ...488 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 528: ...PTA Plug in Syntax Examples 528 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 572: ...572 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 612: ...Examples of LDAP URLs 612 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 634: ...634 Red Hat Directory Server Administrator s Guide May 2005 ...