fixed ldap_auth.py

This commit is contained in:
mdipierro
2013-10-04 21:31:39 -05:00
parent 8418fca2f6
commit cfb68ff90f
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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
+4 -4
View File
@@ -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