Auth: Implement reload function for LDAP (#89267)

* keep config in a separate struct in LDAP

* implement reload function for LDAP

* remove param from sso service constructor

* update unit tests

* add feature flag

* remove nil params

* address feedback

* add unit test for disabled config
This commit is contained in:
Mihai Doarna
2024-06-18 14:31:27 +03:00
committed by GitHub
parent 0afbaa39df
commit d074cc7892
14 changed files with 441 additions and 40 deletions
+2 -2
View File
@@ -32,8 +32,8 @@ type ServersConfig struct {
// ServerConfig holds connection data to LDAP
type ServerConfig struct {
Host string `toml:"host"`
Port int `toml:"port"`
Host string `toml:"host" json:"host"`
Port int `toml:"port" json:"port,omitempty"`
UseSSL bool `toml:"use_ssl" json:"use_ssl,omitempty"`
StartTLS bool `toml:"start_tls" json:"start_tls,omitempty"`