From 47b6cf6fab9d68147ba65cce75e17bbdf68639a7 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 2 Jun 2007 11:15:36 +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 2fff063cde5..e334516dc6b 100644 --- a/htdocs/lib/ldap.class.php +++ b/htdocs/lib/ldap.class.php @@ -885,6 +885,9 @@ class Ldap $ldapSearchResult = @ldap_search($this->connection, $this->people, $criteria, $justthese); + // Si pas de résultat on cherche dans le domaine + if (!$ldapSearchResult) $ldapSearchResult = @ldap_search($this->connection, $this->domain, $criteria, $justthese); + if (!$ldapSearchResult) { $this->error = ldap_errno($this->connection)." ".ldap_error($this->connection);