Fix: pas de connexion pour active directory

This commit is contained in:
Regis Houssin 2007-05-29 14:58:32 +00:00
parent d8c19f91d5
commit 2bd8e9bd67

View File

@ -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;