LDAP password reset but i don't have the old password from Java application -


i want add code helps me reset ldap user password , searched must have old password reset , add new password . how reset password without having old one.

i looked link , ended solution contains usage of old password ldap changing user password on active directory

final modification _delete_old_modification = new modification(modificationtype.delete, "unicodepwd", ('"' + oldpassword + '"').getbytes("utf-16le")); final modification _add_new_modification = new modification(modificationtype.add, "unicodepwd", ('"' + newpassword + '"').getbytes("utf-16le")); 

thanks

get rid of first line, , change modification type in second replace.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -