Auth: Add caseinsensitive check for ingestion command (#59129)

add: check for caseinsensitive configuration and have that on during ingestion
This commit is contained in:
Eric Leijonmarck
2022-11-29 09:56:51 +00:00
committed by GitHub
parent a4a5307722
commit 8a0e0584ba

View File

@@ -36,6 +36,10 @@ func initConflictCfg(cmd *utils.ContextCommandLine) (*setting.Cfg, error) {
HomePath: cmd.HomePath(),
Args: append(configOptions, "cfg:log.level=error"), // tailing arguments have precedence over the options string
})
if !cfg.CaseInsensitiveLogin {
logger.Info("Case Insensitive Login is not enabled, setting to true to not introduce any more conflicts")
cfg.CaseInsensitiveLogin = true
}
if err != nil {
return nil, err
}