forked from Wavyzz/dolibarr
Fix: ajout debug
This commit is contained in:
@@ -997,7 +997,8 @@ class Ldap
|
|||||||
$this->mobile = $this->ldap_utf8_decode($result[0][$this->attr_mobile][0]);
|
$this->mobile = $this->ldap_utf8_decode($result[0][$this->attr_mobile][0]);
|
||||||
|
|
||||||
$this->uacf = $this->parseUACF($this->ldap_utf8_decode($result[0]["useraccountcontrol"][0]));
|
$this->uacf = $this->parseUACF($this->ldap_utf8_decode($result[0]["useraccountcontrol"][0]));
|
||||||
$this->pwdlastset = $this->ldap_utf8_decode($result[0]["pwdlastset"][0]);
|
$this->pwdlastset = $this->convert_time($this->ldap_utf8_decode($result[0]["pwdlastset"][0]));
|
||||||
|
$this->badpwdtime = $this->convert_time($this->ldap_utf8_decode($result[0]["badPasswordTime"][0]));
|
||||||
|
|
||||||
ldap_free_result($this->result);
|
ldap_free_result($this->result);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -354,6 +354,9 @@ if (! session_id() || ! isset($_SESSION["dol_login"]))
|
|||||||
if ($ldapdebug) print "DEBUG: login ldap = ".$login."<br>\n";
|
if ($ldapdebug) print "DEBUG: login ldap = ".$login."<br>\n";
|
||||||
$ldap->fetch($login);
|
$ldap->fetch($login);
|
||||||
|
|
||||||
|
if ($ldapdebug) print "DEBUG: pwdLastSet = ".dolibarr_print_date($ldap->pwdlastset,'%d %b %Y')."<br>\n";
|
||||||
|
if ($ldapdebug) print "DEBUG: badPasswordTime = ".dolibarr_print_date($ldap->badpwdtime,'%d %b %Y')."<br>\n";
|
||||||
|
|
||||||
//TODO : doit etre g<>r<EFBFBD> au niveau de PEAR
|
//TODO : doit etre g<>r<EFBFBD> au niveau de PEAR
|
||||||
/*
|
/*
|
||||||
// On stop si le mot de passe ldap doit etre modifi<66>
|
// On stop si le mot de passe ldap doit etre modifi<66>
|
||||||
|
|||||||
Reference in New Issue
Block a user