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 29feb87 Move to new committers role group
29feb87 is described below
commit 29feb87de8cabc7814653a93974c5b81b52c172c
Author: Sebb <[email protected]>
AuthorDate: Tue May 7 11:08:56 2019 +0100
Move to new committers role group
---
lib/whimsy/asf/ldap.rb | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index 37160fa..664b4ca 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -394,10 +394,16 @@ module ASF
weakref(:pmc_chairs) {Service.find('pmc-chairs').members}
end
- # Obtain a list of committers from LDAP
- # <tt>cn=committers,ou=groups,dc=apache,dc=org</tt>
+ # Obtain a list of committers from LDAP
+ # <tt>cn=committers,ou=role,ou=groups,dc=apache,dc=org</tt>
def self.committers
- weakref(:committers) {Group.find('committers').members}
+ weakref(:committers) {RoleGroup.find('committers').members}
+ end
+
+ # Obtain a list of committers from LDAP (old unix group)
+ # <tt>cn=committers,ou=groups,dc=apache,dc=org</tt>
+ def self.oldcommitters
+ weakref(:oldcommitters) {Group.find('committers').members}
end
# Obtain a list of members from LDAP
@@ -1456,6 +1462,10 @@ end
if __FILE__ == $0
$LOAD_PATH.unshift '/srv/whimsy/lib'
require 'whimsy/asf/config'
+ old=ASF.oldcommitters()
+ puts old.length
+ new=ASF.committers()
+ puts new.length
ASF::RoleGroup.listcns.map {|g| puts ASF::RoleGroup.find(g).dn}
ASF::AppGroup.listcns.map {|g| puts ASF::AppGroup.find(g).dn}
end