From ab44a793ad1fdd5f5f96bcf0f2d80cf2385ae05c Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 4 Oct 2009 13:58:03 +0200 Subject: more debugging infos in LDAP backend darcs-hash:20091004115803-6e07b-5244748bc12e7e8db2d90d6a4ffe0b27ab47922b.gz --- inc/auth/ldap.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/auth/ldap.class.php b/inc/auth/ldap.class.php index d3037e869..6bad46e71 100644 --- a/inc/auth/ldap.class.php +++ b/inc/auth/ldap.class.php @@ -176,8 +176,10 @@ class auth_ldap extends auth_basic { $sr = @ldap_search($this->con, $base, $filter); $result = @ldap_get_entries($this->con, $sr); - if($this->cnf['debug']) + if($this->cnf['debug']){ msg('LDAP user search: '.htmlspecialchars(ldap_error($this->con)),0,__LINE__,__FILE__); + msg('LDAP search at: '.htmlspecialchars($base.' '.$filter),0,__LINE__,__FILE__); + } // Don't accept more or less than one response if(!is_array($result) || $result['count'] != 1){ @@ -225,7 +227,7 @@ class auth_ldap extends auth_basic { msg("LDAP: Reading group memberships failed",-1); if($this->cnf['debug']){ msg('LDAP group search: '.htmlspecialchars(ldap_error($this->con)),0,__LINE__,__FILE__); - msg('LDAP filter was: '.htmlspecialchars($filter),0,__LINE__,__FILE__); + msg('LDAP search at: '.htmlspecialchars($base.' '.$filter),0,__LINE__,__FILE__); } return false; } -- cgit v1.2.3