Changeset 2557 for trunk/packages
- Timestamp:
- Nov 22, 2009, 8:54:11 PM (15 years ago)
- Location:
- trunk/packages
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-database/python/database/validate.py
r2540 r2557 241 241 admin = 'system:' + admin 242 242 try: 243 if user in getafsgroups.getAfsGroupMembers(admin, config.authz [0].cell):243 if user in getafsgroups.getAfsGroupMembers(admin, config.authz.cells[0].cell): 244 244 return admin 245 245 except getafsgroups.AfsProcessError, e: -
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: -
trunk/packages/invirt-web/invirt-cache-acls
r1949 r2557 1 1 #!/bin/sh 2 2 cells () { 3 for i in $(invirt-getconf -l authz); do 4 if [ afs = "$(invirt-getconf authz.$i.type)" ]; then 5 invirt-getconf authz.$i.cell 6 fi 3 for i in $(invirt-getconf -l authz.cells); do 4 invirt-getconf authz.cells.$i.cell 7 5 done 8 6 } -
trunk/packages/xvm-devconfig/master.yaml
r2463 r2557 6 6 7 7 authz: 8 - type: afs 9 cell: athena.mit.edu 8 mech: invirt.authz.locker 9 cells: 10 - cell: athena.mit.edu 10 11 auth: no 11 - type: afs 12 cell: sipb.mit.edu 12 - cell: sipb.mit.edu 13 13 auth: no 14 14 -
trunk/packages/xvm-prodconfig/debian/changelog
r2497 r2557 2 2 3 3 * Add configuration for the git repositories. 4 5 -- Evan Broder <broder@mit.edu> Sun, 11 Oct 2009 18:34:39 -0400 4 * Re-arrange the authz configuration. 5 6 -- Evan Broder <broder@mit.edu> Sun, 22 Nov 2009 20:27:55 -0500 6 7 7 8 xvm-prodconfig (1.1.14) unstable; urgency=low -
trunk/packages/xvm-prodconfig/master.yaml
r2514 r2557 7 7 8 8 authz: 9 - type: afs 10 cell: athena.mit.edu 9 mech: invirt.authz.locker 10 cells: 11 - cell: athena.mit.edu 11 12 auth: yes 12 - type: afs 13 cell: sipb.mit.edu 13 - cell: sipb.mit.edu 14 14 auth: yes 15 15
Note: See TracChangeset
for help on using the changeset viewer.