summaryrefslogtreecommitdiffstats
path: root/pykolab/auth/ldap/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/auth/ldap/__init__.py')
-rw-r--r--pykolab/auth/ldap/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index c5643d9..44019aa 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -164,7 +164,7 @@ class LDAP(Base):
log.error(_l("Authentication cache failed: %r") % (errmsg))
retval = False
- timeout = self.config_get('ldap', 'timeout', default=10)
+ timeout = float(self.config_get('ldap', 'timeout', default=10))
if entry_dn is None:
_search = self.ldap.search_ext(
@@ -3041,7 +3041,7 @@ class LDAP(Base):
):
if timeout is None:
- timeout = self.config_get('ldap', 'timeout', 10)
+ timeout = float(self.config_get('ldap', 'timeout', default=10))
log.debug(_l("Searching with filter %r") % (filterstr), level=8)
@@ -3086,7 +3086,7 @@ class LDAP(Base):
"""
if timeout is None:
- timeout = self.config_get('timeout', default=10)
+ timeout = float(self.config_get('ldap', 'timeout', default=10))
supported_controls = conf.get_list('ldap', 'supported_controls')