fixed issue 1704, groups in ldap, thanks Peter Gastinger

This commit is contained in:
mdipierro
2013-10-04 14:41:19 -05:00
parent 6b0177979f
commit 72a7643cde
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.6.4-stable+timestamp.2013.10.04.14.38.32
Version 2.6.4-stable+timestamp.2013.10.04.14.40.29
+3
View File
@@ -641,6 +641,9 @@ def ldap_auth(server='ldap', port=None,
# bind as anonymous
con.simple_bind_s('', '')
# 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