Issue Details (XML | Word | Printable)

Key: DIRSERVER-243
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: Major Major
Assignee: Alex Karasulu
Reporter: Ugo Cei
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

Cannot add a value to an attribute

Created: 09/Aug/05 05:25 PM   Updated: 07/Feb/06 02:41 PM
Return to search
Component/s: ldap
Affects Version/s: pre-1.0
Fix Version/s: pre-1.0

Time Tracking:
Not Specified

Resolution Date: 25/Oct/05 02:27 AM


 Description  « Hide
When using Novell's JLDAP client library (distributed with OpenLDAP), if you try to modify an entity by adding a value to an attribute that already has one value, the new value overwrites the old one instead of being added. Here's the code I use to add a new member to a group:

            LDAPAttribute member = new LDAPAttribute("uniqueMember", dn);
            LDAPModification mod = new LDAPModification(LDAPModification.ADD, member);
            String groupDN = "cn=students,ou=groups,ouu=system";
            lc.modify(groupDN, mod);

Apparently, specifying LDAPModification.ADD works as if LDAPModification.REPLACE had been specified.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Stefan Zoerner added a comment - 09/Aug/05 05:50 PM
Although the tools/libraries used are different, I think it is plausible that the cause is the same as in this one
http://issues.apache.org/jira/browse/DIREVE-216

Alex Karasulu added a comment - 10/Aug/05 04:17 PM
Committed revision 231186 for duplicate here: http://issues.apache.org/jira/browse/DIREVE-216. Plus this issue is totally in the wrong project category. It is a server bug not one in the LDAP commons. However this is very hard to discern so no worries.

Pier Fumagalli added a comment - 25/Oct/05 02:24 AM
Merging user accounts for Ugo Cei (the reporter)