Show Table of Contents
4.14. Attribute Uniqueness Plug-in Attributes
The Attribute Uniqueness plug-in ensures that the value of an attribute is unique across the directory or subtree.
4.14.1. cn
Sets the name of the Attribute Uniqueness plug-in configuration record. You can use any string, but Red Hat recommends naming the configuration record
attribute_name Attribute Uniqueness
.
Parameter | Description |
---|---|
Entry DN | cn=attribute_uniqueness_configuration_record_name,cn=plugins,cn=config |
Valid Value | Any valid string |
Default Value | None |
Syntax | DirectoryString |
Example | cn: mail Attribute Uniqueness |
4.14.2. uniqueness-attribute-name
Sets the name of the attribute whose values must be unique. This attribute is multi-valued.
Parameter | Description |
---|---|
Entry DN | cn=attribute_uniqueness_configuration_record_name,cn=plugins,cn=config |
Valid Value | Any valid attribute name |
Default Value | None |
Syntax | DirectoryString |
Example | uniqueness-attribute-name: mail |
4.14.3. uniqueness-subtrees
Sets the DN under which the plug-in checks for uniqueness of the attribute's value. This attribute is multi-valued.
Parameter | Description |
---|---|
Entry DN | cn=attribute_uniqueness_configuration_record_name,cn=plugins,cn=config |
Valid Value | Any valid subtree DN |
Default Value | None |
Syntax | DirectoryString |
Example | uniqueness-subtrees: ou=Sales,dc=example,dc=com |
4.14.4. uniqueness-across-all-subtrees
If enabled (
on
), the plug-in checks that the attribute is unique across all subtrees set. If you set the attribute to off
, uniqueness is only enforced within the subtree of the updated entry.
Parameter | Description |
---|---|
Entry DN | cn=attribute_uniqueness_configuration_record_name,cn=plugins,cn=config |
Valid Value | on | off |
Default Value | off |
Syntax | DirectoryString |
Example | uniqueness-across-all-subtrees: off |
4.14.5. uniqueness-top-entry-oc
Directory Server searches this object class in the parent entry of the updated object. If it was not found, the search continues at the next higher level entry up to the root of the directory tree. If the object class was found, Directory Server verifies that the value of the attribute set in
uniqueness-attribute-name
is unique in this subtree.
Parameter | Description |
---|---|
Entry DN | cn=attribute_uniqueness_configuration_record_name,cn=plugins,cn=config |
Valid Value | Any valid object class |
Default Value | None |
Syntax | DirectoryString |
Example | uniqueness-top-entry-oc: nsContainer |
4.14.6. uniqueness-subtree-entries-oc
Optionally, when using the
uniqueness-top-entry-oc
parameter, you can configure that the Attribute Uniqueness plug-in only verifies if an attribute is unique, if the entry contains the object class set in this parameter.
Parameter | Description |
---|---|
Entry DN | cn=attribute_uniqueness_configuration_record_name,cn=plugins,cn=config |
Valid Value | Any valid object class |
Default Value | None |
Syntax | DirectoryString |
Example | uniqueness-subtree-entries-oc: inetOrgPerson |