mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

dugan
21.31.2007 26150e5cc7b18069cfabaa916fa19416d378de70
refs
author dugan <dugan@localhost>
Tuesday, August 21, 2007 15:31 +0200
committer dugan <dugan@localhost>
Tuesday, August 21, 2007 15:31 +0200
commit26150e5cc7b18069cfabaa916fa19416d378de70
tree 56a3ae5683cdfca5e2abe854f9ec82a4ac16eaaa tree | zip | gz
parent 8402455a7d9acb25f9f59a8dedee750a48461f48 view | diff
Add attribute uniqueness plugin implementation that provides single-server
attribute uniqueness. The plugin has the following features:

- provides ability to specify a group of attribute types that must have
unique values; if no attribute types are specified then the plugin allows
the operations to proceed with no checking

- provides ability to specify a set of base DNs that limit the scope of the
uniqueness checking; if no base DNs are specified the server's public
naming contexts are used

- allow changing of these configuration options without server restart

- allows the uniqueness checking to span multiple base DNs; if the server's
public naming contexts are used, then the specified attribute type values must
be globally unique within the server


Two configuration attributes have been added:

1. ds-cfg-unique-attribute-type used to specify the unique attribute type(s)
2. ds-cfg-unique-attribute-base-dn used specify the base DN(s) to limit the search scope

A disabled plugin configuration has been added to the config.ldif file for the uid attribute:

dn: cn=UID Unique Attribute ,cn=Plugins,cn=config
objectClass: top
objectClass: ds-cfg-plugin
objectClass: ds-cfg-unique-attribute-plugin
cn: UID Unique Attribute
ds-cfg-plugin-class: org.opends.server.plugins.UniqueAttributePlugin
ds-cfg-plugin-enabled: false
ds-cfg-plugin-type: preOperationAdd
ds-cfg-plugin-type: preOperationModify
ds-cfg-plugin-type: preOperationModifyDN
ds-cfg-unique-attribute-type: uid

Issue 258.
3 files added
4 files modified
1570 ■■■■■ changed files
opends/resource/config/config.ldif 12 ●●●●● diff | view | raw | blame | history
opends/resource/schema/02-config.ldif 12 ●●●●● diff | view | raw | blame | history
opends/src/admin/defn/org/opends/server/admin/std/UniqueAttributePluginConfiguration.xml 118 ●●●●● diff | view | raw | blame | history
opends/src/messages/messages/plugin.properties 12 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/plugins/UniqueAttributePlugin.java 485 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/resource/config-changes.ldif 19 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/plugins/UniqueAttributePluginTestCase.java 912 ●●●●● diff | view | raw | blame | history