Skip to content

Commit

Permalink
log ldap warnings instead of returning them to end user
Browse files Browse the repository at this point in the history
  • Loading branch information
hashiblaum committed Dec 11, 2024
1 parent 56fa43f commit 147c7c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions builtin/credential/ldap/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,9 @@ func (b *backend) Login(ctx context.Context, req *logical.Request, username stri
}

for _, warning := range c.Warnings {
if b.Logger().IsDebug() {
b.Logger().Debug(string(warning))
if b.Logger().IsWarn() {
b.Logger().Warn(string(warning))
}
ldapResponse.AddWarning(string(warning))
}

var allGroups []string
Expand Down

0 comments on commit 147c7c2

Please sign in to comment.