Update logger info to show mapped user and destination (#51)

This commit is contained in:
Tom Freudenberg 2020-08-30 12:38:20 +02:00 • committed by GitHub
parent a1a4008fff
commit a3c9a4b32a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -359,7 +359,7 @@ func (p *plugin) findUpstream(conn ssh.ConnMetadata, challengeContext ssh.Additi
if matched {
p.logger.Printf("mapping [%v] to [%v]", user, pipe.Username)
p.logger.Printf("mapping [%v] to [%v@%v]", user, pipe.Authmap.MappedUsername, pipe.UpstreamHost)
c, err := upstream.DialForSSH(pipe.UpstreamHost)
if err != nil {