fix: some races when accessing ldap/openid config globally (#14978)

This commit is contained in:
Harshavardhana
2022-05-25 18:32:53 -07:00
committed by GitHub
parent 5aae7178ad
commit fd46a1c3b3
6 changed files with 83 additions and 11 deletions

View File

@@ -558,7 +558,8 @@ func lookupConfigs(s config.Config, objAPI ObjectLayer) {
authZPluginCfg.CloseRespFn = opaCfg.CloseRespFn
}
}
globalAuthZPlugin = polplugin.New(authZPluginCfg)
setGlobalAuthZPlugin(polplugin.New(authZPluginCfg))
globalLDAPConfig, err = xldap.Lookup(s[config.IdentityLDAPSubSys][config.Default],
globalRootCAs)