only key ID from ssh-certificate is used

This commit is contained in:
Jakobus Schürz 2019-08-02 03:17:32 +02:00
parent b8fee87586
commit fb9da76837

View file

@ -22,11 +22,6 @@ def serve_principal(cfg, sshUser, principals):
TEMPLATE=('command="gitosis-serve %(user)s",no-port-forwarding,'
+'no-X11-forwarding,no-agent-forwarding,no-pty %(principals)s')
if '@' in sshUser:
for user in [ sshUser.split('@')[0] ]:
print TEMPLATE % dict(user=user,
principals=util.getAllowedSSHPrincipals(config=cfg))
else:
print TEMPLATE % dict(user=sshUser,
principals=util.getAllowedSSHPrincipals(config=cfg))