From 7de15715e082532bd2175d49b9af1c4decf10e78 Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Sat, 11 Nov 2017 10:29:31 +0100 Subject: [PATCH] ldap: increase timeouts and timelimits for operations --- rhodecode/authentication/plugins/auth_ldap.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rhodecode/authentication/plugins/auth_ldap.py b/rhodecode/authentication/plugins/auth_ldap.py index 3630a39a..0e9b258c 100644 --- a/rhodecode/authentication/plugins/auth_ldap.py +++ b/rhodecode/authentication/plugins/auth_ldap.py @@ -234,9 +234,9 @@ class AuthLdap(object): '/etc/openldap/cacerts') ldap.set_option(ldap.OPT_REFERRALS, ldap.OPT_OFF) ldap.set_option(ldap.OPT_RESTART, ldap.OPT_ON) - ldap.set_option(ldap.OPT_TIMEOUT, 20) - ldap.set_option(ldap.OPT_NETWORK_TIMEOUT, 10) - ldap.set_option(ldap.OPT_TIMELIMIT, 15) + ldap.set_option(ldap.OPT_NETWORK_TIMEOUT, 60 * 10) + ldap.set_option(ldap.OPT_TIMEOUT, 60 * 10) + if self.TLS_KIND != 'PLAIN': ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, self.TLS_REQCERT) server = ldap.initialize(self.LDAP_SERVER)