Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117763272
D208.1775219066.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
666 B
Referenced Files
None
Subscribers
None
D208.1775219066.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
@@ -404,7 +404,7 @@
return retval
- def connect(self, priv=None, immediate=True):
+ def connect(self, priv=None, immediate=False):
"""
Connect to the LDAP server through the uri configured.
"""
@@ -441,7 +441,8 @@
retry_delay=retry_delay
)
- conn.set_option(ldap.OPT_TIMEOUT, 10)
+ if immediate:
+ conn.set_option(ldap.OPT_TIMEOUT, 10)
conn.protocol_version = 3
conn.supported_controls = []
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 3, 12:24 PM (2 h, 19 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18824041
Default Alt Text
D208.1775219066.diff (666 B)
Attached To
Mode
D208: T1414: Set LDAP TIMEOUT option only on "immediate" connection
Attached
Detach File
Event Timeline