You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2016/02/06 20:07:15 UTC

svn commit: r1728871 - /comdev/reporter.apache.org/trunk/site/chi.py

Author: sebb
Date: Sat Feb  6 19:07:15 2016
New Revision: 1728871

URL: http://svn.apache.org/viewvc?rev=1728871&view=rev
Log:
Unused

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

Modified: comdev/reporter.apache.org/trunk/site/chi.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/chi.py?rev=1728871&r1=1728870&r2=1728871&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/chi.py (original)
+++ comdev/reporter.apache.org/trunk/site/chi.py Sat Feb  6 19:07:15 2016
@@ -24,21 +24,6 @@ ldapmap = {
     'webservices': 'ws'
 }
 
-jirapass = ""
-with open("/var/www/reporter.apache.org/data/jirapass.txt", "r") as f:
-    jirapass = f.read().strip()
-    f.close()
-
-def isMember(uid):
-    members = []
-    ldapdata = subprocess.check_output(['ldapsearch', '-x', '-LLL', '-b', 'cn=member,ou=groups,dc=apache,dc=org'])
-    for match in re.finditer(r"memberUid: ([-a-z0-9_.]+)", ldapdata):
-        group = match.group(1)
-        members.append(group)
-    if uid in members:
-        return True
-    return False
-
 
 def getProjectData(project):
     try: