Merge pull request #23984 from Yanonix/develop
Fix LDAP Authentification failure with error 500
This commit is contained in:
commit
8d86f79ec7
@ -344,12 +344,7 @@ class Ldap
|
|||||||
*/
|
*/
|
||||||
public function close()
|
public function close()
|
||||||
{
|
{
|
||||||
$r_type = get_resource_type($this->connection);
|
return $this->unbind();
|
||||||
if ($this->connection && ($r_type === "Unknown" || !@ldap_close($this->connection))) {
|
|
||||||
return false;
|
|
||||||
} else {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user