summaryrefslogtreecommitdiff
path: root/config/main.inc.php.dist
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-01-23 18:01:02 +0100
committerThomas Bruederli <thomas@roundcube.net>2013-01-23 18:01:02 +0100
commite114a6040606afabf84f11651a040cef30bc55a2 (patch)
tree2b1b32ec933989f72b23ff8f30230b8f0dd3388b /config/main.inc.php.dist
parent293a5798af154efb75d0f467639273452e35477e (diff)
Use LDAP fallback hosts on connect + bind because with OpenLDAP 2.x ldap_connect() always succeeds but ldap_bind() will fail if host isn't reachable.
Add option for LDAP bind timeout (sets LDAP_OPT_NETWORK_TIMEOUT on PHP > 5.3.0)
Diffstat (limited to 'config/main.inc.php.dist')
-rw-r--r--config/main.inc.php.dist1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/main.inc.php.dist b/config/main.inc.php.dist
index e6cb9fd4c..b113b41a8 100644
--- a/config/main.inc.php.dist
+++ b/config/main.inc.php.dist
@@ -577,6 +577,7 @@ $rcmail_config['ldap_public']['Verisign'] = array(
'port' => 389,
'use_tls' => false,
'ldap_version' => 3, // using LDAPv3
+ 'network_timeout' => 10, // The timeout (in seconds) for connect + bind arrempts. This is only supported in PHP >= 5.3.0 with OpenLDAP 2.x
'user_specific' => false, // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login.
// %fu - The full username provided, assumes the username is an email
// address, uses the username_domain value if not an email address.