Permettre de sortir de la fonction de connexion après authentification.

This commit is contained in:
Vincent de Grandpré 2022-01-02 16:37:07 -05:00
parent a919ade1c6
commit 6a52b967f4

View File

@ -301,7 +301,8 @@ class Ldap
*/
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;
} else {
return true;