summaryrefslogtreecommitdiff
path: root/plugins/kolab_auth/kolab_auth_ldap.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/kolab_auth/kolab_auth_ldap.php')
-rw-r--r--plugins/kolab_auth/kolab_auth_ldap.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/kolab_auth/kolab_auth_ldap.php b/plugins/kolab_auth/kolab_auth_ldap.php
index 2f2ca14..ddf7cff 100644
--- a/plugins/kolab_auth/kolab_auth_ldap.php
+++ b/plugins/kolab_auth/kolab_auth_ldap.php
@@ -329,9 +329,12 @@ class kolab_auth_ldap extends rcube_ldap_generic
// fields mapping
foreach ($this->fieldmap as $field => $attr) {
- if (isset($entry[$attr])) {
- $entry[$field] = $entry[$attr];
+ // $entry is indexed by lower-case attribute names
+ $attr_lc = strtolower($attr);
+ if (isset($entry[$attr_lc])) {
+ $entry[$field] = $entry[$attr_lc];
}
+ // @TODO: consider returning also $entry[$attr] when $attr != $attr_lc
}
return $entry;