diff --git a/htdocs/lib/ldap.class.php b/htdocs/lib/ldap.class.php index ff507e155de..961d26caea5 100644 --- a/htdocs/lib/ldap.class.php +++ b/htdocs/lib/ldap.class.php @@ -459,6 +459,7 @@ class Ldap $this->ldapErrorCode = ldap_errno( $this->connection); $this->ldapErrorText = ldap_error( $this->connection); $this->ldapDebugDomain = $domain; + $this->ldapDebugDN = $checkDn; return false; } } diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index c79b0077465..89f6eb6346c 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -321,6 +321,7 @@ if (! isset($_SESSION["dol_login"])) print $ldap->ldapErrorCode.'
'; print $ldap->ldapErrorText.'
'; print 'domain:'.$ldap->ldapDebugDomain.'
'; + print 'DN:'.$ldap->ldapDebugDN.'
'; print 'result:'.$resultCheck.'
'; if ($resultCheck) {