diff options
author | Andreas Gohr <andi@splitbrain.org> | 2010-10-18 20:51:15 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2010-10-18 20:51:15 +0200 |
commit | de4b4857b3a1ea36dbcdbd444a7d63cff93ad469 (patch) | |
tree | 18df5fec7d18c28b94ee4c4232a630ecb3b611af /inc | |
parent | 30b9fabab69e5f3d63eab09a96a9aa7c669b9f38 (diff) | |
download | rpg-de4b4857b3a1ea36dbcdbd444a7d63cff93ad469.tar.gz rpg-de4b4857b3a1ea36dbcdbd444a7d63cff93ad469.tar.bz2 |
print LDAP group debugging even on success (like for user debug)
Diffstat (limited to 'inc')
-rw-r--r-- | inc/auth/ldap.class.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/auth/ldap.class.php b/inc/auth/ldap.class.php index 5cc186ce2..7f1eec187 100644 --- a/inc/auth/ldap.class.php +++ b/inc/auth/ldap.class.php @@ -222,12 +222,12 @@ class auth_ldap extends auth_basic { $base = $this->_makeFilter($this->cnf['grouptree'], $user_result); $filter = $this->_makeFilter($this->cnf['groupfilter'], $user_result); $sr = $this->_ldapsearch($this->con, $base, $filter, $this->cnf['groupscope'], array($this->cnf['groupkey'])); + if($this->cnf['debug']){ + msg('LDAP group search: '.htmlspecialchars(ldap_error($this->con)),0,__LINE__,__FILE__); + msg('LDAP search at: '.htmlspecialchars($base.' '.$filter),0,__LINE__,__FILE__); + } if(!$sr){ 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 search at: '.htmlspecialchars($base.' '.$filter),0,__LINE__,__FILE__); - } return false; } $result = ldap_get_entries($this->con, $sr); |