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.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/kolab_auth/kolab_auth_ldap.php b/plugins/kolab_auth/kolab_auth_ldap.php
index 303bbf3..9784427 100644
--- a/plugins/kolab_auth/kolab_auth_ldap.php
+++ b/plugins/kolab_auth/kolab_auth_ldap.php
@@ -310,7 +310,8 @@ class kolab_auth_ldap extends rcube_ldap_generic
if ($limit && $limit <= $i) {
break;
}
- $dn = key($result->entries(true));
+
+ $dn = $entry['dn'];
$entry = rcube_ldap_generic::normalize_entry($entry);
$list[$dn] = $this->field_mapping($dn, $entry);
$i++;