From f968821b762350d7d46bdb4d7c8543ca69ca0097 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 29 May 2007 14:13:16 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20pour=20d=E9buggage=20ldap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/lib/ldap.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/lib/ldap.class.php b/htdocs/lib/ldap.class.php index e5c2e5a47d1..90c6f75e447 100644 --- a/htdocs/lib/ldap.class.php +++ b/htdocs/lib/ldap.class.php @@ -777,8 +777,10 @@ class Ldap dolibarr_syslog("Ldap::getRecords search=".$search." userDn=".$userDn." useridentifier=".$useridentifier." attributeArray=array(".join(',',$attributeArray).")"); // if the directory is AD, then bind first with the search user first - if ($this->serverType == "activedirectory") { - $this->bindauth($this->searchUser, $this->searchPassword); + if ($this->serverType == "activedirectory") + { + $this->bindauth($this->searchUser, $this->searchPassword); + dolibarr_syslog("Ldap::bindauth searchUser=".$this->searchUser." searchPassword=".$this->searchPassword); } // Define filter