Ignore:
Timestamp:
Dec 7, 2009, 9:33:43 PM (14 years ago)
Author:
broder
Message:

Store AFS cell configuration at authz.afs.cells instead of just
authz.cells, to be more clear about purpose.

Location:
trunk/packages/invirt-web
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-web/code/cache_acls.py

    r2557 r2590  
    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 []
  • trunk/packages/invirt-web/code/getafsgroups.py

    r2557 r2590  
    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
  • trunk/packages/invirt-web/code/validation.py

    r2557 r2590  
    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:
  • trunk/packages/invirt-web/invirt-cache-acls

    r2557 r2590  
    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.