only key ID from ssh-certificate is used
This commit is contained in:
parent
b8fee87586
commit
fb9da76837
1 changed files with 2 additions and 7 deletions
|
@ -22,13 +22,8 @@ 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')
|
||||||
|
|
||||||
if '@' in sshUser:
|
print TEMPLATE % dict(user=sshUser,
|
||||||
for user in [ sshUser.split('@')[0] ]:
|
principals=util.getAllowedSSHPrincipals(config=cfg))
|
||||||
print TEMPLATE % dict(user=user,
|
|
||||||
principals=util.getAllowedSSHPrincipals(config=cfg))
|
|
||||||
else:
|
|
||||||
print TEMPLATE % dict(user=sshUser,
|
|
||||||
principals=util.getAllowedSSHPrincipals(config=cfg))
|
|
||||||
|
|
||||||
|
|
||||||
class Main(app.App):
|
class Main(app.App):
|
||||||
|
|
Loading…
Reference in a new issue