diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-05-12 12:13:24 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-05-12 12:13:24 +0200 |
commit | d5190084980835d68847a9b9c18f68c00b4cd37a (patch) | |
tree | 919dad1e0207fd9a19fd9f7c49e17e3d339e0657 /program | |
parent | 547028280cee104c006433de64c84a4e701a2321 (diff) |
Add configurable LDAP_OPT_DEREF option (#1489864) - patch from Stuart C. Naifeh
Diffstat (limited to 'program')
-rw-r--r-- | program/lib/Roundcube/rcube_ldap_generic.php | 3 |
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"); |