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:15:48 +0200 |
commit | f92cccac38f877ab3537dcb489bb4a6216334f84 (patch) | |
tree | bd486bc4d4ed96fcf1c8b9748e62d0235fca26d7 /program/lib/Roundcube/rcube_ldap_generic.php | |
parent | 0b70f509fc3f8cdf15c8887d534d85a015851cf2 (diff) |
Add configurable LDAP_OPT_DEREF option (#1489864) - patch from Stuart C. Naifeh
Conflicts:
CHANGELOG
Diffstat (limited to 'program/lib/Roundcube/rcube_ldap_generic.php')
-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 b85afe4ce..16b7fdaca 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"); |