mindjoy
Jun 8th, 2007, 09:54 AM
I have been using LdapTemplate's modifyAttributes(javax.naming.Name dn, javax.naming.directory.ModificationItem[] mods) as per documentation and ran into a peculiar situation.
My modification items are:
Modification item: Add attribute: objectclass: groupOfUniqueNames
Modification item: Remove attribute: objectclass: groupofuniquenames
As you can see, the problem is that the values of attribute "objectclass" differ only in case and, since LDAP is not case sensitive, exception javax.naming.directory.AttributeInUseException: [LDAP: error code 20 - Attribute Or Value Exists] is thrown.
There might be two ways to correct this:
(1) Change the code not to be case sensitive or
(2) First perform remove, then add.
Could somebody from the developers team take a look at this please? Thank you.
My modification items are:
Modification item: Add attribute: objectclass: groupOfUniqueNames
Modification item: Remove attribute: objectclass: groupofuniquenames
As you can see, the problem is that the values of attribute "objectclass" differ only in case and, since LDAP is not case sensitive, exception javax.naming.directory.AttributeInUseException: [LDAP: error code 20 - Attribute Or Value Exists] is thrown.
There might be two ways to correct this:
(1) Change the code not to be case sensitive or
(2) First perform remove, then add.
Could somebody from the developers team take a look at this please? Thank you.