mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user