authz.cells, to be more clear about purpose.
svn path=/trunk/packages/invirt-web/; revision=2590
return [name]
return []
try:
- return getafsgroups.getAfsGroupMembers(name, config.authz.cells[0].cell)
+ return getafsgroups.getAfsGroupMembers(name, config.authz.afs.cells[0].cell)
except getafsgroups.AfsProcessError:
return []
def getAfsGroupMembers(group, cell):
encrypt = True
- for c in config.authz.cells:
+ for c in config.authz.afs.cells:
if c.cell == cell and hasattr(c, 'auth'):
encrypt = c.auth
subprocess.check_call(['aklog', cell], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
return admin
admin = 'system:' + admin
try:
- if user in getafsgroups.getAfsGroupMembers(admin, config.authz.cells[0].cell):
+ if user in getafsgroups.getAfsGroupMembers(admin, config.authz.afs.cells[0].cell):
return admin
except getafsgroups.AfsProcessError, e:
errmsg = str(e)
#!/bin/sh
cells () {
- for i in $(invirt-getconf -l authz.cells); do
- invirt-getconf authz.cells.$i.cell
+ for i in $(invirt-getconf -l authz.afs.cells); do
+ invirt-getconf authz.afs.cells.$i.cell
done
}
kinit -k -t /etc/invirt/keytab daemon/$(hostname -f)