InvalidAttributeValueException when using non-ascii characters in JNDI
- by matdan
Hi,
I have some trouble using JNDI since it accepts only 7-bits encoded parameters.
I am trying to change an LDAP entry using JNDI with the following code :
Attribute newattr = new BasicAttribute("userpassword", password);
ModificationItem[] mods = new ModificationItem[1];
mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE, newattr);…