You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2021/07/05 15:57:31 UTC

[whimsy] branch master updated: Allow attribute override

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 54e3a0f  Allow attribute override
54e3a0f is described below

commit 54e3a0f61850b41200a5f2666f4b968e13343fb7
Author: Sebb <se...@apache.org>
AuthorDate: Mon Jul 5 16:57:24 2021 +0100

    Allow attribute override
---
 lib/whimsy/asf/ldap.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index 88887c5..5ddd6a6 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -676,8 +676,8 @@ module ASF
 
     # Obtain a list of people known to LDAP.  LDAP filters may be used
     # to retrieve only a subset.
-    def self.list(filter='uid=*')
-      ASF.search_one(base, filter, 'uid').flatten.map {|uid| find(uid)}
+    def self.list(filter='uid=*', attributes='uid')
+      ASF.search_one(base, filter, attributes).flatten.map {|uid| find(uid)}
     end
 
     # Obtain a list of people (ids) known to LDAP.  LDAP filters may be used