summaryrefslogtreecommitdiff
path: root/inc/auth
diff options
context:
space:
mode:
authorAndreas Gohr <gohr@cosmocode.de>2009-10-04 13:58:03 +0200
committerAndreas Gohr <gohr@cosmocode.de>2009-10-04 13:58:03 +0200
commitab44a793ad1fdd5f5f96bcf0f2d80cf2385ae05c (patch)
tree64276d2eae6e31e18e0f24e9e64f91bb0041d1b9 /inc/auth
parentdcc666a7dba302437c529f078d6324ba2cd983c1 (diff)
downloadrpg-ab44a793ad1fdd5f5f96bcf0f2d80cf2385ae05c.tar.gz
rpg-ab44a793ad1fdd5f5f96bcf0f2d80cf2385ae05c.tar.bz2
more debugging infos in LDAP backend
darcs-hash:20091004115803-6e07b-5244748bc12e7e8db2d90d6a4ffe0b27ab47922b.gz
Diffstat (limited to 'inc/auth')
-rw-r--r--inc/auth/ldap.class.php6
1 files 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;
}