[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Modifying an LDAP Entry with JNDI
Hello,
we use openldap-2.0.11. OS RedHat-7.1
I have problems with modify an attribute with JNDI
If I modify for example the attribute mobile from an inetOrgPerson,
and the value of mobile is "+43 1234567890" and i want to change
this value in " ", this doesnt work, you can change the mobilenumber
in another mobilenumber but you cant change into blank.
What is the problem ?
Thanks,
Fritz Bayer
this is my JNDI Code:
try
{
ModificationItem[] mods = new ModificationItem[mapSize];
int i = 0;
Iterator iter = user.keySet().iterator();
while(iter.hasNext())
{
Object key = iter.next();
Attribute mod = new BasicAttribute((String)key,
user.get(key));
mods[i] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE,
mod);
i++;
}
CTX.modifyAttributes(entry, mods);