I'm trying to change user password with hashed password on web server:
$new["userPassword"] = '{md5}' . base64_encode(pack('H*', md5("CLEARTEXT")));
ldap_modify($_LD_CONN, $cn, $new);
I had no luck with the above, but I can do with below code:
$new["unicodePwd"] = "CLEARTEXTPASS";
ldap_modify($_LD_CONN, $cn, $new);
I can't find any valid document or resource except this question.
Thanks in advance.