summaryrefslogtreecommitdiff
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:38:56 (GMT)
commit77a9480d3e6d4a514672825ea672101fe7b99387 (patch)
tree8736776ebf22e9985afc98f9d28b5db5c09ed233
parent9742abf6c84fad608c40b9be6d2a9bfa00364687 (diff)
downloadiRony-77a9480d3e6d4a514672825ea672101fe7b99387.tar.gz
Reset LDAP instance before searching (#3837)
-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 0a54936..4030e11 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]) {