From cfb68ff90f50b384699c9cea5c1bad603d778d47 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Fri, 4 Oct 2013 21:31:39 -0500 Subject: [PATCH] fixed ldap_auth.py --- VERSION | 2 +- gluon/contrib/login_methods/ldap_auth.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index 4fccf8da..a7c9d882 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.7.1-stable+timestamp.2013.10.04.15.14.09 +Version 2.7.1-stable+timestamp.2013.10.04.21.30.48 diff --git a/gluon/contrib/login_methods/ldap_auth.py b/gluon/contrib/login_methods/ldap_auth.py index 49ebae99..c374209e 100644 --- a/gluon/contrib/login_methods/ldap_auth.py +++ b/gluon/contrib/login_methods/ldap_auth.py @@ -640,10 +640,10 @@ def ldap_auth(server='ldap', port=None, else: # bind as anonymous con.simple_bind_s('', '') - - # if username is None, return empty list - if username is None: - return list() + + # if username is None, return empty list + if username is None: + return list() # search for groups where user is in filter = '(&(%s=%s)(%s))' % (ldap.filter.escape_filter_chars( group_member_attrib