Merge pull request #19726 from vdegrandpre/FIX-19725-LDAP-AUTH-500
FIX - 19725 - Authentification LDAP échoue avec erreur 500
This commit is contained in:
commit
aba6aed7d7
@ -301,7 +301,8 @@ class Ldap
|
|||||||
*/
|
*/
|
||||||
public function close()
|
public function close()
|
||||||
{
|
{
|
||||||
if ($this->connection && !@ldap_close($this->connection)) {
|
$r_type = get_resource_type($this->connection);
|
||||||
|
if ($this->connection && ($r_type === "Unknown" || !@ldap_close($this->connection))) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user