From 2bd8e9bd6715d332fb9f65793da97e7fe9ec8cd3 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 29 May 2007 14:58:32 +0000 Subject: [PATCH] Fix: pas de connexion pour active directory --- htdocs/lib/ldap.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/lib/ldap.class.php b/htdocs/lib/ldap.class.php index e0cdad85118..2de459baec7 100644 --- a/htdocs/lib/ldap.class.php +++ b/htdocs/lib/ldap.class.php @@ -216,8 +216,8 @@ class Ldap { $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->result=$this->bindauth($conf->global->LDAP_ADMIN_DN,$conf->global->LDAP_ADMIN_PASS); + if ($this->result) { $this->bind=$this->result; $connected=3; @@ -234,8 +234,8 @@ class Ldap if ($conf->global->LDAP_ADMIN_DN && $conf->global->LDAP_ADMIN_PASS) { dolibarr_syslog("Ldap::connect_bind try bindauth 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->result=$this->bindauth($conf->global->LDAP_ADMIN_DN,$conf->global->LDAP_ADMIN_PASS); + if ($this->result) { $this->bind=$this->result; $connected=2;