Unique Attribute Plugin
The Unique Attribute Plugin enforces constraints on the value of an attribute within a portion of the directory.
The values for each attribute must be unique within each base DN specified in the plugin’s base-dn property or within all of the server’s public naming contexts if no base DNs were specified.
Parent
The Unique Attribute Plugin object inherits from Plugin.
Unique Attribute Plugin properties
You can use configuration expressions to set property values at startup time. For details, see Property value substitution.
Basic Properties | Advanced Properties |
---|---|
base-dn
Synopsis |
Specifies a base DN within which the attribute must be unique. |
Default value |
The plug-in uses the server’s public naming contexts in the searches. |
Allowed values |
A valid DN. |
Multi-valued |
Yes |
Required |
No |
Admin action required |
None |
Advanced |
No |
Read-only |
No |
enabled
Synopsis |
Indicates whether the plug-in is enabled for use. |
Default value |
None |
Allowed values |
true false |
Multi-valued |
No |
Required |
Yes |
Admin action required |
None |
Advanced |
No |
Read-only |
No |
type
Synopsis |
Specifies the attribute types to check for value uniqueness. Each attribute value must be unique for all specified attribute types. For example, if both uid and cn types are specified, then each uid and cn value must be unique for all uid and cn attributes under the specified base DN(s). |
Default value |
None |
Allowed values |
The name of an attribute type defined in the LDAP schema. |
Multi-valued |
Yes |
Required |
Yes |
Admin action required |
None |
Advanced |
No |
Read-only |
No |
Advanced properties
Use the --advanced
option to access advanced properties.
invoke-for-internal-operations
Synopsis |
Indicates whether the plug-in should be invoked for internal operations. |
Description |
Any plug-in that can be invoked for internal operations must ensure that it does not create any new internal operatons that can cause the same plug-in to be re-invoked. |
Default value |
true |
Allowed values |
true false |
Multi-valued |
No |
Required |
No |
Admin action required |
None |
Advanced |
Yes |
Read-only |
No |
java-class
Synopsis |
Specifies the fully-qualified name of the Java class that provides the plug-in implementation. |
Default value |
org.opends.server.plugins.UniqueAttributePlugin |
Allowed values |
A Java class that extends or implements:
|
Multi-valued |
No |
Required |
Yes |
Admin action required |
None |
Advanced |
Yes |
Read-only |
No |
plugin-type
Synopsis |
Specifies the set of plug-in types for the plug-in, which specifies the times at which the plug-in is invoked. |
Default value |
preoperationadd preoperationmodify preoperationmodifydn postoperationadd postoperationmodify postoperationmodifydn postsynchronizationadd postsynchronizationmodify postsynchronizationmodifydn |
Allowed values |
|
Multi-valued |
Yes |
Required |
Yes |
Admin action required |
The object must be disabled and re-enabled for changes to take effect. |
Advanced |
Yes |
Read-only |
No |