Skip to content

Commit

Permalink
Check in user belong to sub-entries of audit/duo groups
Browse files Browse the repository at this point in the history
  • Loading branch information
yurem committed Feb 28, 2017
1 parent 626baa9 commit 98fa56c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Server/integrations/duo/DuoExternalAuthenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def isUserMemberOfGroup(self, user, attribute, group):
member_of_list = user.getAttributeValues(attribute)
if (member_of_list != None):
for member_of in member_of_list:
if (StringHelper.equalsIgnoreCase(group, member_of)):
if StringHelper.equalsIgnoreCase(group, member_of) or member_of.endsWith(group):
is_member = True
break

Expand Down

0 comments on commit 98fa56c

Please sign in to comment.