Changeset 2716 for package_branches/invirt-web
- Timestamp:
- Dec 20, 2009, 9:47:16 PM (15 years ago)
- Location:
- package_branches/invirt-web/cherrypy-rebased
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy-rebased/code/cache_acls.py
r2590 r2716 40 40 return [] 41 41 try: 42 return getafsgroups.getAfsGroupMembers(name, config.authz. afs.cells[0].cell)42 return getafsgroups.getAfsGroupMembers(name, config.authz.cells[0].cell) 43 43 except getafsgroups.AfsProcessError: 44 44 return [] -
package_branches/invirt-web/cherrypy-rebased/code/getafsgroups.py
r2688 r2716 31 31 def getAfsGroupMembers(group, cell): 32 32 encrypt = True 33 for c in config.authz. afs.cells:33 for c in config.authz.cells: 34 34 if c.cell == cell and hasattr(c, 'auth'): 35 35 encrypt = c.auth -
package_branches/invirt-web/cherrypy-rebased/code/main.py
r2715 r2716 87 87 def __getattr__(self, name): 88 88 if name in ("admin", "overlord"): 89 if not cherrypy.request.login in getAfsGroupMembers(config.adminacl, config.authz [0].cell):89 if not cherrypy.request.login in getAfsGroupMembers(config.adminacl, config.authz.cells[0].cell): 90 90 raise InvalidInput('username', cherrypy.request.login, 91 91 'Not in admin group %s.' % config.adminacl) -
package_branches/invirt-web/cherrypy-rebased/code/validation.py
- Property svn:executable set to *
r2698 r2716 223 223 admin = 'system:' + admin 224 224 try: 225 if user in getafsgroups.getAfsGroupMembers(admin, config.authz. afs.cells[0].cell):225 if user in getafsgroups.getAfsGroupMembers(admin, config.authz.cells[0].cell): 226 226 return admin 227 227 except getafsgroups.AfsProcessError, e: -
package_branches/invirt-web/cherrypy-rebased/invirt-cache-acls
r2590 r2716 1 1 #!/bin/sh 2 2 cells () { 3 for i in $(invirt-getconf -l authz. afs.cells); do4 invirt-getconf authz. afs.cells.$i.cell3 for i in $(invirt-getconf -l authz.cells); do 4 invirt-getconf authz.cells.$i.cell 5 5 done 6 6 }
Note: See TracChangeset
for help on using the changeset viewer.