From a0b0348e89fc20f5810c5744758a88a7928fef4c Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Sun, 22 Nov 2009 20:54:11 -0500 Subject: [PATCH] Re-arrange the authz configuration. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/database/validate.py b/python/database/validate.py index c072367..af964ef 100644 --- a/python/database/validate.py +++ b/python/database/validate.py @@ -240,7 +240,7 @@ def testAdmin(user, admin, machine): 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) -- 1.7.9.5