diff --git a/htdocs/lib/ldap.class.php b/htdocs/lib/ldap.class.php index e56a4010b2a..5881f9c4f9d 100644 --- a/htdocs/lib/ldap.class.php +++ b/htdocs/lib/ldap.class.php @@ -979,6 +979,9 @@ class Ldap $filter = '('.$this->filter.'('.$userIdentifier.'='.$user.'))'; $this->result = @ldap_search($this->connection, $this->people, $filter); + + // Si pas de résultat on cherche dans le domaine + if (!this->result) $this->result = @ldap_search($this->connection, $this->domain, $filter); $result = @ldap_get_entries( $this->connection, $this->result);