summaryrefslogtreecommitdiffstats
path: root/pykolab/auth/ldap/__init__.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2019-10-25 10:28:05 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2019-10-25 10:28:05 +0200
commitb34c794d14c714e5a3007a2e535425e6dfee51a5 (patch)
tree15c209f6fac75aeaa23d1a038457d87ca1336945 /pykolab/auth/ldap/__init__.py
parentf67a1132ea2048c2116d26770f6b35c19764d8c6 (diff)
downloadpykolab-b34c794d14c714e5a3007a2e535425e6dfee51a5.tar.gz
Make sure that config functions do take and honor the default value passed along
Diffstat (limited to 'pykolab/auth/ldap/__init__.py')
-rw-r--r--pykolab/auth/ldap/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index 5087bb6..df35cd1 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -197,7 +197,7 @@ class LDAP(pykolab.base.Base):
pass
retval = False
- timeout = self.config_get('timeout', 10)
+ timeout = self.config_get('timeout', default=10)
if entry_dn is None:
_search = self.ldap.search_ext(
@@ -3100,7 +3100,7 @@ class LDAP(pykolab.base.Base):
"""
if timeout is None:
- timeout = self.config_get('timeout', 10)
+ timeout = self.config_get('timeout', default=10)
supported_controls = conf.get_list('ldap', 'supported_controls')