From d8c19f91d55a440033b3c89ae376a82501edfd62 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 29 May 2007 14:42:24 +0000 Subject: [PATCH] Fix: pas de connexion pour active directory --- htdocs/lib/ldap.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/lib/ldap.class.php b/htdocs/lib/ldap.class.php index ab61a2226a4..e0cdad85118 100644 --- a/htdocs/lib/ldap.class.php +++ b/htdocs/lib/ldap.class.php @@ -215,10 +215,11 @@ class Ldap if ($this->serverType == "activedirectory") { $result=$this->setReferrals(); + dolibarr_syslog("Ldap::connect_bind try bindauth for activedirectory on ".$host." user=".$conf->global->LDAP_ADMIN_DN,LOG_DEBUG); + $result=$this->bindauth($conf->global->LDAP_ADMIN_DN,$conf->global->LDAP_ADMIN_PASS); if ($result) { - //$this->bind=???? Comment positionne-t-on bind avec activedirectory ? - //si bind non défini, les autres fonctions échouent + $this->bind=$this->result; $connected=3; break; }