Apache Directory Project - [jira] Created: (DIRLDAP-47) Cannot add a value to an attribute

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > August 2005 > [jira] Created: (DIRLDAP-47) Cannot add a value to an attribute





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Created: (DIRLDAP-47) Cannot add a value to an attribute
Ugo Cei (JIRA)

2005-08-09, 7:45 am

Cannot add a value to an attribute
----------------------------------

Key: DIRLDAP-47
URL: http://issues.apache.org/jira/browse/DIRLDAP-47
Project: Directory LDAP
Type: Bug
Versions: 0.9.1
Reporter: Ugo Cei
Assigned to: 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:
http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com