fixed ldap_auth.py
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user