If you are trying to change the userPassword attribute when using md5 hashes, try the following lines:
$new["userPassword"] = '{md5}' . base64_encode(pack('H*', md5($newpass_in_plaintext)));
ldap_modify($ds, $dn, $new);
If you are trying to change the userPassword attribute when using md5 hashes, try the following lines:
$new["userPassword"] = '{md5}' . base64_encode(pack('H*', md5($newpass_in_plaintext)));
ldap_modify($ds, $dn, $new);