forked from Wavyzz/dolibarr
Fix: debugage authentification ldap
This commit is contained in:
@@ -458,6 +458,7 @@ class Ldap
|
|||||||
*/
|
*/
|
||||||
$this->ldapErrorCode = ldap_errno( $this->connection);
|
$this->ldapErrorCode = ldap_errno( $this->connection);
|
||||||
$this->ldapErrorText = ldap_error( $this->connection);
|
$this->ldapErrorText = ldap_error( $this->connection);
|
||||||
|
$this->ldapDebugDomain = $domain;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -320,6 +320,7 @@ if (! isset($_SESSION["dol_login"]))
|
|||||||
$resultCheck=$ldap->checkPass($usertotest,$passwordtotest);
|
$resultCheck=$ldap->checkPass($usertotest,$passwordtotest);
|
||||||
print $ldap->ldapErrorCode.'<br>';
|
print $ldap->ldapErrorCode.'<br>';
|
||||||
print $ldap->ldapErrorText.'<br>';
|
print $ldap->ldapErrorText.'<br>';
|
||||||
|
print 'domain:'.$ldap->ldapDebugDomain.'<br>';
|
||||||
print 'result:'.$resultCheck.'<br>';
|
print 'result:'.$resultCheck.'<br>';
|
||||||
if ($resultCheck)
|
if ($resultCheck)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user