changeset 3938:0ab296a0c099

ldap auth: fix processing of TLS options
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 05 Aug 2008 20:47:42 +0200
parents 544e5091d940
children 4e904da48c4c
files MoinMoin/auth/ldap_login.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/auth/ldap_login.py	Sun Aug 03 22:22:41 2008 +0200
+++ b/MoinMoin/auth/ldap_login.py	Tue Aug 05 20:47:42 2008 +0200
@@ -140,7 +140,7 @@
                         (ldap.OPT_X_TLS, self.start_tls),
                         #(ldap.OPT_X_TLS_ALLOW, 1),
                     ):
-                        if value:
+                        if value is not None:
                             ldap.set_option(option, value)
 
                 server = self.server_uri