This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 73ca140a Use a single query
73ca140a is described below
commit 73ca140aee50ed682230f7748b8062e7cdaedbb1
Author: Sebb <[email protected]>
AuthorDate: Sat Apr 29 10:38:57 2023 +0100
Use a single query
---
lib/whimsy/asf/ldap.rb | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index 565862fc..73f86e76 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -864,8 +864,7 @@ module ASF
# 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