changeset 4676:e42fc41f71a4

ldap_login: use None as default value for ssl certs/keys, so it does set the related options. Using empty pathes lets it fail with Connect Error. Thanks to chantra for the fix.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 06 Apr 2009 12:27:11 +0200
parents 68628fe3b091
children 9eeae87fdd36 903831e9eb77
files MoinMoin/auth/ldap_login.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/auth/ldap_login.py	Tue Mar 24 22:10:41 2009 +0100
+++ b/MoinMoin/auth/ldap_login.py	Mon Apr 06 12:27:11 2009 +0200
@@ -75,10 +75,10 @@
         coding='utf-8', # coding used for ldap queries and result values
         timeout=10, # how long we wait for the ldap server [s]
         start_tls=0, # 0 = No, 1 = Try, 2 = Required
-        tls_cacertdir='',
-        tls_cacertfile='',
-        tls_certfile='',
-        tls_keyfile='',
+        tls_cacertdir=None,
+        tls_cacertfile=None,
+        tls_certfile=None,
+        tls_keyfile=None,
         tls_require_cert=0, # 0 == ldap.OPT_X_TLS_NEVER (needed for self-signed certs)
         bind_once=False, # set to True to only do one bind - useful if configured to bind as the user on the first attempt
         ):