Skip to content

Commit

Permalink
Fix keyboardInteractive with auditlog enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Nikos Tsipinakis <[email protected]>
  • Loading branch information
tsipinakis committed Feb 15, 2024
1 parent 2c74d26 commit e488e3b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions internal/auditlogintegration/handler_networkconnection.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package auditlogintegration
import (
"context"

"go.containerssh.io/libcontainerssh/auditlog/message"
publicAuth "go.containerssh.io/libcontainerssh/auth"
"go.containerssh.io/libcontainerssh/internal/auditlog"
internalAuth "go.containerssh.io/libcontainerssh/internal/auth"
"go.containerssh.io/libcontainerssh/internal/sshserver"
"go.containerssh.io/libcontainerssh/metadata"
"go.containerssh.io/libcontainerssh/auditlog/message"
publicAuth "go.containerssh.io/libcontainerssh/auth"
"go.containerssh.io/libcontainerssh/internal/auditlog"
internalAuth "go.containerssh.io/libcontainerssh/internal/auth"
"go.containerssh.io/libcontainerssh/internal/sshserver"
"go.containerssh.io/libcontainerssh/metadata"
)

type networkConnectionHandler struct {
Expand Down Expand Up @@ -44,8 +44,8 @@ func (n *networkConnectionHandler) OnAuthKeyboardInteractive(
return answers, err
}
var auditAnswers []message.KeyboardInteractiveAnswer
for _, q := range auditQuestions {
a, err := answers.GetByQuestionText(q.Question)
for _, q := range questions {
a, err := answers.Get(q)
if err != nil {
return answers, err
}
Expand Down

0 comments on commit e488e3b

Please sign in to comment.