fixed issue 1704, groups in ldap, thanks Peter Gastinger
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -641,6 +641,9 @@ def ldap_auth(server='ldap', port=None,
|
|||||||
# bind as anonymous
|
# bind as anonymous
|
||||||
con.simple_bind_s('', '')
|
con.simple_bind_s('', '')
|
||||||
|
|
||||||
|
# if username is None, return empty list
|
||||||
|
if username is None:
|
||||||
|
return list()
|
||||||
# search for groups where user is in
|
# search for groups where user is in
|
||||||
filter = '(&(%s=%s)(%s))' % (ldap.filter.escape_filter_chars(
|
filter = '(&(%s=%s)(%s))' % (ldap.filter.escape_filter_chars(
|
||||||
group_member_attrib
|
group_member_attrib
|
||||||
|
|||||||
Reference in New Issue
Block a user