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,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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue