Skip to content

Commit

Permalink
Use a single query
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Apr 29, 2023
1 parent 08959e0 commit 73ca140
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/whimsy/asf/ldap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -864,8 +864,7 @@ def groups
# list of LDAP services that this individual is a member of
def services
weakref(:services) do
Service.listcns("member=#{dn}") +
Service.listcns("memberUid=#{name}")
Service.listcns("(|(member=#{dn})(memberUid=#{name}))")
end
end

Expand Down

0 comments on commit 73ca140

Please sign in to comment.