a line for each principal

This commit is contained in:
Jakobus Schürz 2019-08-03 15:21:13 +02:00
parent 55b54aed64
commit 64b3391498

View file

@ -21,11 +21,12 @@ def serve_principal(cfg, sshUser, principals):
TEMPLATE=('command="gitosis-serve %(user)s",no-port-forwarding,' TEMPLATE=('command="gitosis-serve %(user)s",no-port-forwarding,'
+'no-X11-forwarding,no-agent-forwarding,no-pty %(principals)s') +'no-X11-forwarding,no-agent-forwarding,no-pty %(principals)s')
print TEMPLATE % dict(user=sshUser, for principal in util.getAllowedSSHPrincipals(config=cfg):
principals=util.getAllowedSSHPrincipals(config=cfg)) print TEMPLATE % dict(user=sshUser,
principals=principal)
return TEMPLATE % dict(user=sshUser, return TEMPLATE % dict(user=sshUser,
principals=util.getAllowedSSHPrincipals(config=cfg)) principals=util.principal)
class Main(app.App): class Main(app.App):