community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1858357 - /comdev/reporter.apache.org/trunk/site/addrelease.py
Date Mon, 29 Apr 2019 10:13:38 GMT
Author: sebb
Date: Mon Apr 29 10:13:38 2019
New Revision: 1858357

URL: http://svn.apache.org/viewvc?rev=1858357&view=rev
Log:
Update LDAP to use ou=project

Modified:
    comdev/reporter.apache.org/trunk/site/addrelease.py

Modified: comdev/reporter.apache.org/trunk/site/addrelease.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/addrelease.py?rev=1858357&r1=1858356&r2=1858357&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/addrelease.py (original)
+++ comdev/reporter.apache.org/trunk/site/addrelease.py Mon Apr 29 10:13:38 2019
@@ -11,9 +11,10 @@ dojson = form['json'].value if 'json' in
     
 def getPMCs(uid):
     groups = []
-    ldapdata = subprocess.check_output(['ldapsearch', '-x', '-LLL', '(|(memberUid=%s)(member=uid=%s,ou=people,dc=apache,dc=org))'
% (uid, uid), 'cn'])
-    picked = {}
-    for match in re.finditer(r"dn: cn=([a-zA-Z0-9]+),ou=pmc,ou=committees,ou=groups,dc=apache,dc=org",
ldapdata):
+    ldapdata = subprocess.check_output(['ldapsearch', '-x', '-LLL',
+        '-b', 'ou=project,ou=groups,dc=apache,dc=org',
+        'member=uid=%s,ou=people,dc=apache,dc=org' % uid, 'dn'])
+    for match in re.finditer(r"dn: cn=([a-zA-Z0-9]+),ou=project,ou=groups,dc=apache,dc=org",
ldapdata):
         group = match.group(1)
         if group != "incubator":
             groups.append(group)



Mime
View raw message