How do I change a user password using JNDI?
807573Feb 24 2010 — edited Feb 24 2010Hi all,
I know this is programming question, if I am in the wrong place let me know.
We currently change user passwords using a java web application, however I think we are doing it wrong.
We do a SHA hash on the clear text password and then modifyAttributes() method to to update the BasicAttribute "userpassword". This seems wrong, because if we change the hashing algorithm in the LDAP server our change password program will be broken until we sync up the hashing algorithms.
Is there better way to do this? Any examples would be greatly appreciated. My google searches haven't yeilded anything useful.
Cheers,
Bryan