Configure attribute uniqueness across a set of attributes using the
multiple-attribute-behavior
property.
To enable uniqueness across attribute sets:
dsconfig
tool.
The following table details the multiple-attribute-behavior
property and the values it can take.
Value | Description | Example |
---|---|---|
|
If multiple attributes are specified, then uniqueness is enforced for all values of each attribute, but the same value might appear in different attributes in the same entry or in different entries. |
For example, assume you have an existing entry that has attributes
If you set the uniqueness plugin to have
|
|
If multiple attributes are specified, then uniqueness is enforced across all of those attributes. If a value appears in one of those attributes that value might not be present in any other of the listed attributes in the same entry, nor in any of the listed attributes in other entries. |
For example, assume you have an existing entry that has attributes,
If you set the uniqueness plugin to have
|
|
If multiple attributes are specified, then uniqueness is enforced across all of those attributes. So, if a value appears in one of those attributes, that value might not be present in any of the listed attributes in other entries. However, the same value might appear in multiple attributes in the same entry. |
For example, assume you have an existing entry that has
attributes, You set the uniqueness plugin to have
|
The multiple-attribute-behavior
property is set to
unique-within-each-attribute
, which indicates that uniqueness
is enforced for all values of each attribute, such as
telephoneNumber=123-456-7890
and
mobile=123-456-7891
, but the same value, such as either
123-456-7890 or 123-456-7891 might appear in different attributes in the same
entry or in different entries.
$ dsconfig create-plugin \
--plug-in "Unique telephoneNumber and mobile" \
--type "unique-attribute" \
--set "enabled:true" \
--set "type:telephoneNumber" \
--set "type:mobile" \
--set "multiple-attribute-behavior:unique-within-each-attribute" \
--no-prompt