VAULT-31594 Add debug level logging to the LDAP auth library (#28881)

* initial commit of debug  error handling

* adding changelog
This commit is contained in:
JMGoldsmith
2024-11-18 12:48:59 +01:00
committed by GitHub
parent dce93e3d6c
commit 3f62ae702b
3 changed files with 27 additions and 0 deletions

View File

@@ -51,6 +51,10 @@ func (b *backend) pathConfigRotateRootUpdate(ctx context.Context, req *logical.R
u, p := cfg.BindDN, cfg.BindPassword
if u == "" || p == "" {
// Logging this is as it may be useful to know that the binddn/bindpass is not set.
if b.Logger().IsDebug() {
b.Logger().Debug("auth is not using authenticated search, no root to rotate")
}
return logical.ErrorResponse("auth is not using authenticated search, no root to rotate"), nil
}