Fix: pas de connexion pour active directory
This commit is contained in:
parent
d8c19f91d5
commit
2bd8e9bd67
@ -216,8 +216,8 @@ class Ldap
|
|||||||
{
|
{
|
||||||
$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);
|
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);
|
$this->result=$this->bindauth($conf->global->LDAP_ADMIN_DN,$conf->global->LDAP_ADMIN_PASS);
|
||||||
if ($result)
|
if ($this->result)
|
||||||
{
|
{
|
||||||
$this->bind=$this->result;
|
$this->bind=$this->result;
|
||||||
$connected=3;
|
$connected=3;
|
||||||
@ -234,8 +234,8 @@ class Ldap
|
|||||||
if ($conf->global->LDAP_ADMIN_DN && $conf->global->LDAP_ADMIN_PASS)
|
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);
|
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);
|
$this->result=$this->bindauth($conf->global->LDAP_ADMIN_DN,$conf->global->LDAP_ADMIN_PASS);
|
||||||
if ($result)
|
if ($this->result)
|
||||||
{
|
{
|
||||||
$this->bind=$this->result;
|
$this->bind=$this->result;
|
||||||
$connected=2;
|
$connected=2;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user