summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e3ef118)
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-web/; revision=2557
return [name]
return []
try:
return [name]
return []
try:
- return getafsgroups.getAfsGroupMembers(name, config.authz[0].cell)
+ return getafsgroups.getAfsGroupMembers(name, config.authz.cells[0].cell)
except getafsgroups.AfsProcessError:
return []
except getafsgroups.AfsProcessError:
return []
def getAfsGroupMembers(group, cell):
encrypt = True
def getAfsGroupMembers(group, cell):
encrypt = True
- for c in config.authz:
- if c.type == 'afs' and c.cell == cell and hasattr(c, 'auth'):
+ for c in config.authz.cells:
+ if c.cell == cell and hasattr(c, 'auth'):
encrypt = c.auth
subprocess.check_call(['aklog', cell], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
p = subprocess.Popen(["pts", "membership", "-encrypt" if encrypt else '-noauth', group, '-c', cell],
encrypt = c.auth
subprocess.check_call(['aklog', cell], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
p = subprocess.Popen(["pts", "membership", "-encrypt" if encrypt else '-noauth', group, '-c', cell],
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)
- for i in $(invirt-getconf -l authz); do
- if [ afs = "$(invirt-getconf authz.$i.type)" ]; then
- invirt-getconf authz.$i.cell
- fi
+ for i in $(invirt-getconf -l authz.cells); do
+ invirt-getconf authz.cells.$i.cell
done
}
kinit -k -t /etc/invirt/keytab daemon/$(hostname -f)
done
}
kinit -k -t /etc/invirt/keytab daemon/$(hostname -f)