From 2905ed0e54637577e7d10edfe0f67f26d2b7f3d5 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 31 Dec 2007 14:07:55 +0000 Subject: [PATCH] Fix: debugage authentification ldap --- htdocs/lib/ldap.class.php | 1 + htdocs/main.inc.php | 1 + 2 files changed, 2 insertions(+) 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) {