LDAP: SSO Configuration page (#91875)

* Init screen for LDAP UI

* add ldap drawer

* update routes

* update definitions

* add definitions for ldap configurations

* improve readibility

* remove whitespace

* clean up

* Adjust LdapSettingsPage

* adjust form autocomplete from backend call
This commit is contained in:
linoman
2024-08-20 17:31:13 +02:00
committed by GitHub
parent cd4b7ef9db
commit eecd56659c
8 changed files with 457 additions and 8 deletions
+1 -5
View File
@@ -114,11 +114,7 @@ func GetLDAPConfig(cfg *setting.Cfg) *Config {
// GetConfig returns the LDAP config if LDAP is enabled otherwise it returns nil. It returns either cached value of
// the config or it reads it and caches it first.
func GetConfig(cfg *Config) (*ServersConfig, error) {
if cfg != nil {
if !cfg.Enabled {
return nil, nil
}
} else if !cfg.Enabled {
if cfg == nil || !cfg.Enabled {
return nil, nil
}