
|
If you were logged in you would be able to see more operations.
|
|
|
| Resolution Date: |
25/Oct/05 02:27 AM
|
|
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.
|
|
Description
|
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.
|
Show » |
made changes - 10/Aug/05 04:17 PM
| Field |
Original Value |
New Value |
|
Status
|
Open
[ 1
]
|
Resolved
[ 5
]
|
|
Resolution
|
|
Duplicate
[ 3
]
|
made changes - 25/Oct/05 02:24 AM
|
Status
|
Resolved
[ 5
]
|
Reopened
[ 4
]
|
|
Resolution
|
Duplicate
[ 3
]
|
|
made changes - 25/Oct/05 02:26 AM
|
Reporter
|
Ugo Cei
[ ugocei
]
|
Ugo Cei
[ ugo
]
|
made changes - 25/Oct/05 02:27 AM
|
Resolution
|
|
Duplicate
[ 3
]
|
|
Status
|
Reopened
[ 4
]
|
Closed
[ 6
]
|
made changes - 07/Feb/06 02:41 PM
|
Affects Version/s
|
0.9.1
[ 11126
]
|
|
|
Affects Version/s
|
|
pre-1.0
[ 12310782
]
|
|
Key
|
DIRLDAP-47
|
DIRSERVER-243
|
|
Component/s
|
|
ldap
[ 12310715
]
|
|
Project
|
Directory LDAP
[ 10514
]
|
ApacheDS
[ 12310260
]
|
|
Fix Version/s
|
|
pre-1.0
[ 12310782
]
|
|