Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added config property to set LDAP_OPT_REFERRALS option to an LDAP con…

  • Loading branch information...
commit 3b4b03d6b342075098d4cdd95bb131a00deed5b8 1 parent 8f142e3
@thomascube thomascube authored
Showing with 4 additions and 0 deletions.
  1. +1 −0  config/
  2. +3 −0  program/include/rcube_ldap.php
1  config/
@@ -586,6 +586,7 @@ $rcmail_config['ldap_public']['Verisign'] = array(
'numsub_filter' => '(objectClass=organizationalUnit)', // with VLV, we also use numSubOrdinates to query the total number of records. Set this filter to get all numSubOrdinates attributes for counting
'sizelimit' => '0', // Enables you to limit the count of entries fetched. Setting this to 0 means no limit.
'timelimit' => '0', // Sets the number of seconds how long is spend on the search. Setting this to 0 means no limit.
+ 'referrals' => true|false, // Sets the LDAP_OPT_REFERRALS option. Mostly used in multi-domain Active Directory setups
// definition for contact groups (uncomment if no groups are supported)
// for the groups base_dn, the user replacements %fu, %u, $d and %dc work as for base_dn (see above)
3  program/include/rcube_ldap.php
@@ -189,6 +189,9 @@ private function _connect()
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']);
$this->_debug("S: NOT OK");
Please sign in to comment.
Something went wrong with that request. Please try again.