Changeset 2717


Ignore:
Timestamp:
Dec 20, 2009, 9:47:20 PM (15 years ago)
Author:
broder
Message:

Update the cherrypy branch to use authz.afs.cells instead of just
authz.cells, to stay in sync with r2590.

(Again, this isn't really a cherry-pick, but whatever)

Location:
package_branches/invirt-web/cherrypy-rebased
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/cherrypy-rebased/code/cache_acls.py

    r2716 r2717  
    4040        return []
    4141    try:
    42         return getafsgroups.getAfsGroupMembers(name, config.authz.cells[0].cell)
     42        return getafsgroups.getAfsGroupMembers(name, config.authz.afs.cells[0].cell)
    4343    except getafsgroups.AfsProcessError:
    4444        return []
  • package_branches/invirt-web/cherrypy-rebased/code/getafsgroups.py

    r2716 r2717  
    3131def getAfsGroupMembers(group, cell):
    3232    encrypt = True
    33     for c in config.authz.cells:
     33    for c in config.authz.afs.cells:
    3434        if c.cell == cell and hasattr(c, 'auth'):
    3535            encrypt = c.auth
  • package_branches/invirt-web/cherrypy-rebased/code/main.py

    r2716 r2717  
    8787    def __getattr__(self, name):
    8888        if name in ("admin", "overlord"):
    89             if not cherrypy.request.login in getAfsGroupMembers(config.adminacl, config.authz.cells[0].cell):
     89            if not cherrypy.request.login in getAfsGroupMembers(config.adminacl, config.authz.afs.cells[0].cell):
    9090                raise InvalidInput('username', cherrypy.request.login,
    9191                                   'Not in admin group %s.' % config.adminacl)
  • package_branches/invirt-web/cherrypy-rebased/code/validation.py

    r2716 r2717  
    223223        admin = 'system:' + admin
    224224    try:
    225         if user in getafsgroups.getAfsGroupMembers(admin, config.authz.cells[0].cell):
     225        if user in getafsgroups.getAfsGroupMembers(admin, config.authz.afs.cells[0].cell):
    226226            return admin
    227227    except getafsgroups.AfsProcessError, e:
  • package_branches/invirt-web/cherrypy-rebased/invirt-cache-acls

    r2716 r2717  
    11#!/bin/sh
    22cells () {
    3   for i in $(invirt-getconf -l authz.cells); do
    4     invirt-getconf authz.cells.$i.cell
     3  for i in $(invirt-getconf -l authz.afs.cells); do
     4    invirt-getconf authz.afs.cells.$i.cell
    55  done
    66}
Note: See TracChangeset for help on using the changeset viewer.