Re-arrange the authz configuration.
authorEvan Broder <broder@mit.edu>
Mon, 23 Nov 2009 01:54:11 +0000 (20:54 -0500)
committerEvan Broder <broder@mit.edu>
Mon, 23 Nov 2009 01:54:11 +0000 (20:54 -0500)
In particular, even if we allow for mixing of multiple authz
mechanisms at some point, you won't have multiple instances of the
locker authz type, so the "type" shouldn't be a property of each of
the cells we specify how to authenticate against.

svn path=/trunk/packages/invirt-database/; revision=2557

python/database/validate.py

index c072367..af964ef 100644 (file)
@@ -240,7 +240,7 @@ def testAdmin(user, admin, machine):
             return admin
         admin = 'system:' + admin
     try:
             return admin
         admin = 'system:' + admin
     try:
-        if user in getafsgroups.getAfsGroupMembers(admin, config.authz[0].cell):
+        if user in getafsgroups.getAfsGroupMembers(admin, config.authz.cells[0].cell):
             return admin
     except getafsgroups.AfsProcessError, e:
         errmsg = str(e)
             return admin
     except getafsgroups.AfsProcessError, e:
         errmsg = str(e)