SSO: Register LDAP service if LDAP is enabled in SSO settings (#90228)
register LDAP service if LDAP is enabled in SSO settings
This commit is contained in:
@@ -50,7 +50,10 @@ func ProvideRegistration(
|
||||
|
||||
var proxyClients []authn.ProxyClient
|
||||
var passwordClients []authn.PasswordClient
|
||||
if cfg.LDAPAuthEnabled {
|
||||
|
||||
// always register LDAP if LDAP is enabled in SSO settings
|
||||
ssoSettingsLDAP := features.IsEnabledGlobally(featuremgmt.FlagSsoSettingsApi) && features.IsEnabledGlobally(featuremgmt.FlagSsoSettingsLDAP)
|
||||
if cfg.LDAPAuthEnabled || ssoSettingsLDAP {
|
||||
ldap := clients.ProvideLDAP(cfg, ldapService, userService, authInfoService)
|
||||
proxyClients = append(proxyClients, ldap)
|
||||
passwordClients = append(passwordClients, ldap)
|
||||
|
||||
Reference in New Issue
Block a user