- Timestamp:
- Feb 14, 2009, 10:18:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-web/code/getafsgroups.py
- Property svn:executable set to *
r1959 r2119 2 2 import pprint 3 3 import subprocess 4 from invirt.config import structs as config 4 5 5 6 # import ldap … … 29 30 30 31 def getAfsGroupMembers(group, cell): 32 encrypt = True 33 for c in config.authz: 34 if c.type == 'afs' and c.cell == cell and hasattr(c, 'auth'): 35 encrypt = c.auth 31 36 subprocess.check_call(['aklog', cell], stdout=subprocess.PIPE, stderr=subprocess.PIPE) 32 p = subprocess.Popen(["pts", "membership", "-encrypt" , group, '-c', cell],37 p = subprocess.Popen(["pts", "membership", "-encrypt" if encrypt else '-noauth', group, '-c', cell], 33 38 stdout=subprocess.PIPE, stderr=subprocess.PIPE) 34 39 err = p.stderr.read()
Note: See TracChangeset
for help on using the changeset viewer.