directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pier Fumagalli (JIRA)" <>
Subject [jira] Reopened: (DIRLDAP-47) Cannot add a value to an attribute
Date Mon, 24 Oct 2005 17:24:56 GMT
     [ ]
Pier Fumagalli reopened DIRLDAP-47:

Merging user accounts for Ugo Cei (the reporter)

> Cannot add a value to an attribute
> ----------------------------------
>          Key: DIRLDAP-47
>          URL:
>      Project: Directory LDAP
>         Type: Bug
>     Versions: 0.9.1
>     Reporter: Ugo Cei
>     Assignee: Alex Karasulu

> 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.            

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message