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
Post a Comment