summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-11-05 11:34:53 +0000
committerthomascube <thomas@roundcube.net>2011-11-05 11:34:53 +0000
commit3b4b03d6b342075098d4cdd95bb131a00deed5b8 (patch)
treec4a55ae46566ea53550a80264ec0ef4e2928b362 /program
parent8f142e3489af2f264f98b40105846b625a2ecc91 (diff)
Added config property to set LDAP_OPT_REFERRALS option to an LDAP connection
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_ldap.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/program/include/rcube_ldap.php b/program/include/rcube_ldap.php
index a81632545..ab891e3ea 100644
--- a/program/include/rcube_ldap.php
+++ b/program/include/rcube_ldap.php
@@ -189,6 +189,9 @@ class rcube_ldap extends rcube_addressbook
ldap_set_option($lc, LDAP_OPT_PROTOCOL_VERSION, $this->prop['ldap_version']);
$this->prop['host'] = $host;
$this->conn = $lc;
+
+ if (isset($this->prop['referrals']))
+ ldap_set_option($lc, LDAP_OPT_REFERRALS, $this->prop['referrals']);
break;
}
$this->_debug("S: NOT OK");