summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-05-12 12:13:24 +0200
committerAleksander Machniak <alec@alec.pl>2014-05-12 12:13:24 +0200
commitd5190084980835d68847a9b9c18f68c00b4cd37a (patch)
tree919dad1e0207fd9a19fd9f7c49e17e3d339e0657 /program/lib
parent547028280cee104c006433de64c84a4e701a2321 (diff)
Add configurable LDAP_OPT_DEREF option (#1489864) - patch from Stuart C. Naifeh
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/Roundcube/rcube_ldap_generic.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_ldap_generic.php b/program/lib/Roundcube/rcube_ldap_generic.php
index f1048ef39..f6f9884d8 100644
--- a/program/lib/Roundcube/rcube_ldap_generic.php
+++ b/program/lib/Roundcube/rcube_ldap_generic.php
@@ -190,6 +190,9 @@ class rcube_ldap_generic
if (isset($this->config['referrals']))
ldap_set_option($lc, LDAP_OPT_REFERRALS, $this->config['referrals']);
+
+ if (isset($this->config['dereference']))
+ ldap_set_option($lc, LDAP_OPT_DEREF, $this->config['dereference']);
}
else {
$this->_debug("S: NOT OK");