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

add: check for caseinsensitive configuration and have that on during ingestion
pull/57101/head
Eric Leijonmarck 3 years ago committed by GitHub
parent a4a5307722
commit 8a0e0584ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      pkg/cmd/grafana-cli/commands/conflict_user_command.go

@ -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
}

Loading…
Cancel
Save