Skip to content

Commit cf80b6d

Browse files
committed
log ldap warnings instead of returning them to end user
1 parent f172971 commit cf80b6d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

builtin/credential/ldap/backend.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,9 @@ func (b *backend) Login(ctx context.Context, req *logical.Request, username stri
125125
}
126126

127127
for _, warning := range c.Warnings {
128-
if b.Logger().IsDebug() {
129-
b.Logger().Debug(string(warning))
128+
if b.Logger().IsWarn() {
129+
b.Logger().Warn(string(warning))
130130
}
131-
ldapResponse.AddWarning(string(warning))
132131
}
133132

134133
var allGroups []string

0 commit comments

Comments
 (0)