Fix: pas de connexion pour active directory
This commit is contained in:
parent
6a89ba4277
commit
d8c19f91d5
@ -215,10 +215,11 @@ class Ldap
|
|||||||
if ($this->serverType == "activedirectory")
|
if ($this->serverType == "activedirectory")
|
||||||
{
|
{
|
||||||
$result=$this->setReferrals();
|
$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)
|
if ($result)
|
||||||
{
|
{
|
||||||
//$this->bind=???? Comment positionne-t-on bind avec activedirectory ?
|
$this->bind=$this->result;
|
||||||
//si bind non défini, les autres fonctions échouent
|
|
||||||
$connected=3;
|
$connected=3;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user