Fix: ajout debug
This commit is contained in:
parent
4480540cfe
commit
98642d9508
@ -354,6 +354,7 @@ 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: UACF = ".$ldap->uacf"<br>\n";
|
||||||
if ($ldapdebug) print "DEBUG: pwdLastSet = ".dolibarr_print_date($ldap->pwdlastset,'%d %b %Y')."<br>\n";
|
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";
|
if ($ldapdebug) print "DEBUG: badPasswordTime = ".dolibarr_print_date($ldap->badpwdtime,'%d %b %Y')."<br>\n";
|
||||||
|
|
||||||
@ -378,7 +379,6 @@ if (! session_id() || ! isset($_SESSION["dol_login"]))
|
|||||||
*/
|
*/
|
||||||
// On recherche le user dolibarr en fonction de son SID ldap
|
// On recherche le user dolibarr en fonction de son SID ldap
|
||||||
$user->search_sid = $ldap->getObjectSid($login);
|
$user->search_sid = $ldap->getObjectSid($login);
|
||||||
if ($ldapdebug) print "DEBUG: erreur getObjectSid = ".$ldap->error."<br>\n";
|
|
||||||
if ($ldapdebug) print "DEBUG: search_sid = ".$user->search_sid."<br>\n";
|
if ($ldapdebug) print "DEBUG: search_sid = ".$user->search_sid."<br>\n";
|
||||||
$result=$user->fetch();
|
$result=$user->fetch();
|
||||||
if ($result)
|
if ($result)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user