From a3c9a4b32a6f2fd1345b2d681122e6cec2735f05 Mon Sep 17 00:00:00 2001 From: Tom Freudenberg Date: Sun, 30 Aug 2020 12:38:20 +0200 Subject: [PATCH] Update logger info to show mapped user and destination (#51) --- sshpiperd/upstream/yaml/yaml.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshpiperd/upstream/yaml/yaml.go b/sshpiperd/upstream/yaml/yaml.go index 1d6b7430..00b7a4fc 100644 --- a/sshpiperd/upstream/yaml/yaml.go +++ b/sshpiperd/upstream/yaml/yaml.go @@ -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 {