summaryrefslogtreecommitdiff
path: root/plugins/kolab_auth
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-08-15 13:10:12 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-08-15 13:10:47 (GMT)
commit0d9e4228111341deb78c26e0b3e9a7d592083dac (patch)
treeadcb979ab49006c56687437b0bf2a3b3c2511564 /plugins/kolab_auth
parentfee3773c3bbe7e9e7e296c4d2dd0278e1f5f62da (diff)
downloadroundcubemail-plugins-kolab-0d9e4228111341deb78c26e0b3e9a7d592083dac.tar.gz
Update Net_LDAP3_Result->get_dn()
Diffstat (limited to 'plugins/kolab_auth')
-rw-r--r--plugins/kolab_auth/kolab_auth_ldap.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/kolab_auth/kolab_auth_ldap.php b/plugins/kolab_auth/kolab_auth_ldap.php
index 9de58bc..0e3f238 100644
--- a/plugins/kolab_auth/kolab_auth_ldap.php
+++ b/plugins/kolab_auth/kolab_auth_ldap.php
@@ -154,7 +154,7 @@ class kolab_auth_ldap extends rcube_ldap_generic
foreach ($result as $entry) {
$entry = rcube_ldap_generic::normalize_entry($entry);
if (!$entry['dn']) {
- $entry['dn'] = $result->get_dn();
+ $entry['dn'] = key($result->entries(true));
}
$groups[$entry['dn']] = $entry[$name_attr];
}
@@ -303,7 +303,7 @@ class kolab_auth_ldap extends rcube_ldap_generic
if ($limit && $limit <= $i) {
break;
}
- $dn = $result->get_dn();
+ $dn = key($result->entries(true));
$entry = rcube_ldap_generic::normalize_entry($entry);
$list[$dn] = $this->field_mapping($dn, $entry);
$i++;