Changeset 2557 for trunk/packages/invirt-web/code
- Timestamp:
- Nov 22, 2009, 8:54:11 PM (15 years ago)
- Location:
- trunk/packages/invirt-web/code
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-web/code/cache_acls.py
r2226 r2557 40 40 return [] 41 41 try: 42 return getafsgroups.getAfsGroupMembers(name, config.authz [0].cell)42 return getafsgroups.getAfsGroupMembers(name, config.authz.cells[0].cell) 43 43 except getafsgroups.AfsProcessError: 44 44 return [] -
trunk/packages/invirt-web/code/getafsgroups.py
r2119 r2557 31 31 def getAfsGroupMembers(group, cell): 32 32 encrypt = True 33 for c in config.authz :34 if c. type == 'afs' and c.cell == cell and hasattr(c, 'auth'):33 for c in config.authz.cells: 34 if c.cell == cell and hasattr(c, 'auth'): 35 35 encrypt = c.auth 36 36 subprocess.check_call(['aklog', cell], stdout=subprocess.PIPE, stderr=subprocess.PIPE) -
trunk/packages/invirt-web/code/validation.py
r2293 r2557 223 223 admin = 'system:' + admin 224 224 try: 225 if user in getafsgroups.getAfsGroupMembers(admin, config.authz [0].cell):225 if user in getafsgroups.getAfsGroupMembers(admin, config.authz.cells[0].cell): 226 226 return admin 227 227 except getafsgroups.AfsProcessError, e:
Note: See TracChangeset
for help on using the changeset viewer.