From 2efd952ea05026098ab5e7a0c4dd7630aac2b586 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 2 Jun 2007 10:59:39 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20si=20le=20DN=20des=20users=20est=20diff?= =?UTF-8?q?=E9rente=20du=20DN=20de=20l'admin=20on=20cherche=20dans=20le=20?= =?UTF-8?q?domaine=20en=20entier=20afin=20de=20trouver=20l'admin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/lib/ldap.class.php | 3 +++ 1 file changed, 3 insertions(+) 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);