summaryrefslogtreecommitdiff
path: root/lib/Kolab/CardDAV/LDAPDirectory.php
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-10-27 13:35:10 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-10-27 13:35:10 (GMT)
commit9888161d9420ba03e9f651574a4960e0574fa85e (patch)
tree7e85d038e238f2d4d109ed8e0c64d8dfe5708051 /lib/Kolab/CardDAV/LDAPDirectory.php
parent2446e622016b425d7a05332452199b2c5854d01f (diff)
downloadiRony-9888161d9420ba03e9f651574a4960e0574fa85e.tar.gz
Reset LDAP instance before searching (#3837)
Diffstat (limited to 'lib/Kolab/CardDAV/LDAPDirectory.php')
-rw-r--r--lib/Kolab/CardDAV/LDAPDirectory.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Kolab/CardDAV/LDAPDirectory.php b/lib/Kolab/CardDAV/LDAPDirectory.php
index ca175f2..ccebbe4 100644
--- a/lib/Kolab/CardDAV/LDAPDirectory.php
+++ b/lib/Kolab/CardDAV/LDAPDirectory.php
@@ -164,6 +164,8 @@ class LDAPDirectory extends DAV\Collection implements \Sabre\CardDAV\IDirectory,
$contact = null;
if ($ldap = $this->connect()) {
+ $ldap->reset();
+
// used cached uid mapping
$cached_index = $this->cache ? $this->cache->get('index') : array();
if ($cached_index[$uid]) {