[Date Prev][Date Next] [Chronological] [Thread] [Top]

JNDI / Modify userpassword

    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);
I miss something but what ?
Nicolas B.