summaryrefslogtreecommitdiff
path: root/lib/Auth/LDAP.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Auth/LDAP.php')
-rw-r--r--lib/Auth/LDAP.php20
1 files changed, 1 insertions, 19 deletions
diff --git a/lib/Auth/LDAP.php b/lib/Auth/LDAP.php
index 8ef191e..5850672 100644
--- a/lib/Auth/LDAP.php
+++ b/lib/Auth/LDAP.php
@@ -594,25 +594,7 @@ class LDAP extends Net_LDAP3 {
$result = $this->search_entries($this->config_get('root_dn'), '(objectclass=*)', 'sub', null, $search);
if ($result && $result->count() > 0) {
- $result = $result->entries(true);
-
- // LDAP searches are case-insensitive, post-process result
- // with correct character case handling
- foreach ($result as $key => $user) {
- foreach ($user as $attr => $list) {
- foreach ((array) $list as $addr) {
- if (compare_email($address, $addr)) {
- continue 3;
- }
- }
- }
-
- unset($result[$key]);
- }
-
- reset($result);
-
- return $result;
+ return $result->entries(true);
}
return false;