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 9cb3c26  Don't always want the Project objects
9cb3c26 is described below

commit 9cb3c2606ec832626fdfd4babcf2d5fa7bc49744
Author: Sebb <[email protected]>
AuthorDate: Mon Feb 11 10:25:47 2019 +0000

    Don't always want the Project objects
---
 lib/whimsy/asf/ldap.rb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index c37785c..3b6b0ad 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -1075,6 +1075,11 @@ module ASF
       ASF.search_one(base, filter, 'cn').flatten.map {|cn| Project.find(cn)}
     end
 
+    # obtain a list of projectids from LDAP
+    def self.listids(filter='cn=*')
+      ASF.search_one(base, filter, 'cn').flatten
+    end
+
     # return project only if it actually exits
     def self.[] name
       project = super

Reply via email to