Skip to content

Commit

Permalink
isGroupMember shouldn't care about case of full dn (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewBemis committed Jun 15, 2018
1 parent 99af22d commit d46d3ef
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ class LdapDirectoryDAO(protected val ldapConnectionPool: LDAPConnectionPool, pro
entry <- Option(ldapConnectionPool.getEntry(subjectDn(member), Attr.memberOf))
memberOf <- Option(entry.getAttribute(Attr.memberOf))
} yield {
memberOf.getValues.contains(groupDn(groupId))
val memberships = memberOf.getValues.toSet.map(dnToGroupIdentity)
memberships.contains(groupId)
}
isMember.getOrElse(false)
}
Expand Down

0 comments on commit d46d3ef

Please sign in to comment.