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