2
0
forked from Wavyzz/dolibarr

Fix: debugage authentification ldap

This commit is contained in:
Regis Houssin
2007-12-31 14:05:07 +00:00
parent 79f66318c6
commit c16961e049
2 changed files with 2 additions and 0 deletions

View File

@@ -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;
} }
} }

View File

@@ -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)
{ {