summaryrefslogtreecommitdiff
path: root/internal/sshd/sshd.go
diff options
context:
space:
mode:
authorMarin Hannache <git@mareo.fr>2023-01-23 07:54:09 +0000
committerIgor Drozdov <idrozdov@gitlab.com>2023-01-23 07:54:09 +0000
commit51ea0f50f52d5d1dade02aadff3c163a0a792779 (patch)
treed36cc06a14545bf627a988dbd2aec60c85cc5f9b /internal/sshd/sshd.go
parent977a7e80f03db2d2e2646abfc6ad9d95bfc71fb9 (diff)
downloadgitlab-shell-51ea0f50f52d5d1dade02aadff3c163a0a792779.tar.gz
Add support for the gssapi-with-mic auth method
Diffstat (limited to 'internal/sshd/sshd.go')
-rw-r--r--internal/sshd/sshd.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/internal/sshd/sshd.go b/internal/sshd/sshd.go
index d20286a..fbb5052 100644
--- a/internal/sshd/sshd.go
+++ b/internal/sshd/sshd.go
@@ -194,11 +194,12 @@ func (s *Server) handleConn(ctx context.Context, nconn net.Conn) {
conn := newConnection(s.Config, nconn)
conn.handle(ctx, s.serverConfig.get(ctx), func(sconn *ssh.ServerConn, channel ssh.Channel, requests <-chan *ssh.Request) error {
session := &session{
- cfg: s.Config,
- channel: channel,
- gitlabKeyId: sconn.Permissions.Extensions["key-id"],
- remoteAddr: remoteAddr,
- started: time.Now(),
+ cfg: s.Config,
+ channel: channel,
+ gitlabKeyId: sconn.Permissions.Extensions["key-id"],
+ gitlabKrb5Principal: sconn.Permissions.Extensions["krb5principal"],
+ remoteAddr: remoteAddr,
+ started: time.Now(),
}
return session.handle(ctx, requests)