fix ldap passw bug with activedirectory
Fix to avoid LDAP Error: 53 (Unwilling to perform) on Samba4 AD
This commit is contained in:
parent
283f37a364
commit
2c73c19bd5
@ -486,6 +486,7 @@ class Ldap
|
|||||||
// For better compatibility with Samba4 AD
|
// For better compatibility with Samba4 AD
|
||||||
if ($this->serverType == "activedirectory") {
|
if ($this->serverType == "activedirectory") {
|
||||||
unset($info['cn']); // To avoid error : Operation not allowed on RDN (Code 67)
|
unset($info['cn']); // To avoid error : Operation not allowed on RDN (Code 67)
|
||||||
|
$info['unicodePwd'] = mb_convert_encoding("\"".$info['unicodePwd']."\"", "UTF-16LE", "UTF-8"); // To avoid error : LDAP Error: 53 (Unwilling to perform)
|
||||||
}
|
}
|
||||||
$result = @ldap_modify($this->connection, $dn, $info);
|
$result = @ldap_modify($this->connection, $dn, $info);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user