MM-10532: Add EnableSyncWithLdapIncludeAuth config (#9319)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
42806ae965
Коммит
ae3865b539
@@ -452,8 +452,9 @@ func (a *App) trackConfig() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
a.SendDiagnostic(TRACK_CONFIG_SAML, map[string]interface{}{
|
a.SendDiagnostic(TRACK_CONFIG_SAML, map[string]interface{}{
|
||||||
"enable": *cfg.SamlSettings.Enable,
|
"enable": *cfg.SamlSettings.Enable,
|
||||||
"enable_sync_with_ldap": *cfg.SamlSettings.EnableSyncWithLdap,
|
"enable_sync_with_ldap": *cfg.SamlSettings.EnableSyncWithLdap,
|
||||||
|
"enable_sync_with_ldap_include_auth": *cfg.SamlSettings.EnableSyncWithLdapIncludeAuth,
|
||||||
"verify": *cfg.SamlSettings.Verify,
|
"verify": *cfg.SamlSettings.Verify,
|
||||||
"encrypt": *cfg.SamlSettings.Encrypt,
|
"encrypt": *cfg.SamlSettings.Encrypt,
|
||||||
"isdefault_scoping_idp_provider_id": isDefault(*cfg.SamlSettings.ScopingIDPProviderId, ""),
|
"isdefault_scoping_idp_provider_id": isDefault(*cfg.SamlSettings.ScopingIDPProviderId, ""),
|
||||||
|
|||||||
@@ -308,6 +308,7 @@
|
|||||||
"SamlSettings": {
|
"SamlSettings": {
|
||||||
"Enable": false,
|
"Enable": false,
|
||||||
"EnableSyncWithLdap": false,
|
"EnableSyncWithLdap": false,
|
||||||
|
"EnableSyncWithLdapIncludeAuth": false,
|
||||||
"Verify": true,
|
"Verify": true,
|
||||||
"Encrypt": true,
|
"Encrypt": true,
|
||||||
"IdpUrl": "",
|
"IdpUrl": "",
|
||||||
|
|||||||
@@ -1457,8 +1457,9 @@ func (s *LocalizationSettings) SetDefaults() {
|
|||||||
|
|
||||||
type SamlSettings struct {
|
type SamlSettings struct {
|
||||||
// Basic
|
// Basic
|
||||||
Enable *bool
|
Enable *bool
|
||||||
EnableSyncWithLdap *bool
|
EnableSyncWithLdap *bool
|
||||||
|
EnableSyncWithLdapIncludeAuth *bool
|
||||||
|
|
||||||
Verify *bool
|
Verify *bool
|
||||||
Encrypt *bool
|
Encrypt *bool
|
||||||
@@ -1500,6 +1501,10 @@ func (s *SamlSettings) SetDefaults() {
|
|||||||
s.EnableSyncWithLdap = NewBool(false)
|
s.EnableSyncWithLdap = NewBool(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if s.EnableSyncWithLdapIncludeAuth == nil {
|
||||||
|
s.EnableSyncWithLdapIncludeAuth = NewBool(false)
|
||||||
|
}
|
||||||
|
|
||||||
if s.Verify == nil {
|
if s.Verify == nil {
|
||||||
s.Verify = NewBool(true)
|
s.Verify = NewBool(true)
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user