summaryrefslogtreecommitdiff
path: root/config
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:09:51 +0100
commit2b2f34d35487e9cf227f70f4e33898ac139cac67 (patch)
treecd3244915c87789370b75599a5aceaf734fdb47c /config
parent6984ab64f7c99b3371c4a61d0713d5b873233106 (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')
-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.