Skip to content

Commit

Permalink
Log authentication failures caused by an incorrect local password (#363)
Browse files Browse the repository at this point in the history
UDENG-5922
  • Loading branch information
adombeck authored Feb 4, 2025
2 parents e7141e4 + 9752d47 commit 806c574
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/broker/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,7 @@ func (b *Broker) handleIsAuthenticated(ctx context.Context, session *session, au
return AuthDenied, errorMessage{Message: "could not check password"}
}
if !ok {
log.Warningf(context.Background(), "Authentication failure: incorrect local password for user %q", session.username)
return AuthRetry, errorMessage{Message: "incorrect password"}
}

Expand Down

0 comments on commit 806c574

Please sign in to comment.