long username removed

This commit is contained in:
Jakobus Schürz 2019-08-02 02:07:30 +02:00
parent 648319b634
commit 3f9ba857d3

View file

@ -23,7 +23,7 @@ def serve_principal(cfg, sshUser, principals):
+'no-X11-forwarding,no-agent-forwarding,no-pty %(principals)s')
if '@' in sshUser:
for user in [ sshUser, sshUser.split('@')[0] ]:
for user in [ sshUser.split('@')[0] ]:
print TEMPLATE % dict(user=user,
principals=util.getAllowedSSHPrincipals(config=cfg))
else: