diff options
author | Gerrit Uitslag <klapinklapin@gmail.com> | 2013-09-20 16:32:08 +0200 |
---|---|---|
committer | Gerrit Uitslag <klapinklapin@gmail.com> | 2013-09-20 16:32:08 +0200 |
commit | 4f11d93def5599386f32a03401a73e7175679f22 (patch) | |
tree | 109699c9f24ece8b7ef1e1687370b1e570690104 /lib/plugins/authldap | |
parent | 9c438d6c2f958e38aa324a04ed37b9a072872038 (diff) | |
download | rpg-4f11d93def5599386f32a03401a73e7175679f22.tar.gz rpg-4f11d93def5599386f32a03401a73e7175679f22.tar.bz2 |
skips 'count' entries in ldap results. Fixes FS#2370
Diffstat (limited to 'lib/plugins/authldap')
-rw-r--r-- | lib/plugins/authldap/auth.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plugins/authldap/auth.php b/lib/plugins/authldap/auth.php index 6a967a6d4..de1332282 100644 --- a/lib/plugins/authldap/auth.php +++ b/lib/plugins/authldap/auth.php @@ -208,8 +208,8 @@ class auth_plugin_authldap extends DokuWiki_Auth_Plugin { if(is_array($key)) { // use regexp to clean up user_result list($key, $regexp) = each($key); - if($user_result[$key]) foreach($user_result[$key] as $grp) { - if(preg_match($regexp, $grp, $match)) { + if($user_result[$key]) foreach($user_result[$key] as $grpkey => $grp) { + if($grpkey !== 'count' && preg_match($regexp, $grp, $match)) { if($localkey == 'grps') { $info[$localkey][] = $match[1]; } else { |