summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_ldap.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-02-13 13:58:55 +0100
committerThomas Bruederli <thomas@roundcube.net>2013-02-13 13:58:55 +0100
commit004f866f203cbca3fd9ed5547dd849da2d0882ff (patch)
tree2036911f3b1abc09b483af1b62973653e45d825a /program/lib/Roundcube/rcube_ldap.php
parent203323ba8559c1c548a747049e2508e7d4bcaff4 (diff)
Prepare for VLV auto-detection (requries 'config_root_dn' config option)
Diffstat (limited to 'program/lib/Roundcube/rcube_ldap.php')
-rw-r--r--program/lib/Roundcube/rcube_ldap.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_ldap.php b/program/lib/Roundcube/rcube_ldap.php
index c117b799a..81ca0d138 100644
--- a/program/lib/Roundcube/rcube_ldap.php
+++ b/program/lib/Roundcube/rcube_ldap.php
@@ -194,6 +194,7 @@ class rcube_ldap extends rcube_addressbook
// initialize ldap wrapper object
$this->prop['attributes'] = array_values($this->fieldmap);
$this->ldap = new rcube_ldap_generic($this->prop, true);
+ $this->ldap->set_cache($this->cache);
$this->_connect();
}
@@ -673,7 +674,7 @@ class rcube_ldap extends rcube_addressbook
if ($this->prop['vlv_search'] && $this->ready && join(',', (array)$fields) == join(',', $list_fields)) {
$entries = $this->ldap->search($this->base_dn, $this->prop['filter'], $this->prop['scope'], $this->prop['attributes'],
- array('vlv' => true, 'search' => $value, 'sort' => $this->prop['sort']));
+ array('search' => $value, 'sort' => $this->prop['sort']));
$this->result = new rcube_result_set(0);
if ($entries === false) {