Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117811199
D871.1775277214.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D871.1775277214.diff
View Options
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -164,7 +164,7 @@
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 @@
):
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 @@
"""
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')
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 4:33 AM (17 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18823882
Default Alt Text
D871.1775277214.diff (1 KB)
Attached To
Mode
D871: ldap/timeout: always convert to float, fix arguments
Attached
Detach File
Event Timeline