Hi,
I'm trying to write a client
application using OpenLDAP and JNDI. Everything well except the modification of
the password.
It's not well inserted in the database because it's
writen not encoded. My source code is :
Attribute newattr = new
BasicAttribute("Userpassword","toto");
ModificationItem[] mods = new ModificationItem[1]; mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE,newattr); String distname; distname = getDN(st_uid); try{ dirContext.modifyAttributes(distname,mods); }
I miss something but what ?
Thx
Nicolas B. |