summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús Espino <jespinog@gmail.com>2018-08-28 19:49:01 +0200
committerGitHub <noreply@github.com>2018-08-28 19:49:01 +0200
commitae3865b5397b798f85151c51ec4e37187fc5f25a (patch)
tree535a95feb15dda0c6a8c4cba0f56de3124b92c39
parent42806ae965b861955235698f247df862fd655d09 (diff)
downloadchat-ae3865b5397b798f85151c51ec4e37187fc5f25a.tar.gz
chat-ae3865b5397b798f85151c51ec4e37187fc5f25a.tar.bz2
chat-ae3865b5397b798f85151c51ec4e37187fc5f25a.zip
MM-10532: Add EnableSyncWithLdapIncludeAuth config (#9319)
-rw-r--r--app/diagnostics.go5
-rw-r--r--config/default.json1
-rw-r--r--model/config.go9
3 files changed, 11 insertions, 4 deletions
diff --git a/app/diagnostics.go b/app/diagnostics.go
index 450e9c0e3..f0d6153e6 100644
--- a/app/diagnostics.go
+++ b/app/diagnostics.go
@@ -452,8 +452,9 @@ func (a *App) trackConfig() {
})
a.SendDiagnostic(TRACK_CONFIG_SAML, map[string]interface{}{
- "enable": *cfg.SamlSettings.Enable,
- "enable_sync_with_ldap": *cfg.SamlSettings.EnableSyncWithLdap,
+ "enable": *cfg.SamlSettings.Enable,
+ "enable_sync_with_ldap": *cfg.SamlSettings.EnableSyncWithLdap,
+ "enable_sync_with_ldap_include_auth": *cfg.SamlSettings.EnableSyncWithLdapIncludeAuth,
"verify": *cfg.SamlSettings.Verify,
"encrypt": *cfg.SamlSettings.Encrypt,
"isdefault_scoping_idp_provider_id": isDefault(*cfg.SamlSettings.ScopingIDPProviderId, ""),
diff --git a/config/default.json b/config/default.json
index ebbf42dca..dc103638e 100644
--- a/config/default.json
+++ b/config/default.json
@@ -308,6 +308,7 @@
"SamlSettings": {
"Enable": false,
"EnableSyncWithLdap": false,
+ "EnableSyncWithLdapIncludeAuth": false,
"Verify": true,
"Encrypt": true,
"IdpUrl": "",
diff --git a/model/config.go b/model/config.go
index 7fc5c567a..c0f443b72 100644
--- a/model/config.go
+++ b/model/config.go
@@ -1457,8 +1457,9 @@ func (s *LocalizationSettings) SetDefaults() {
type SamlSettings struct {
// Basic
- Enable *bool
- EnableSyncWithLdap *bool
+ Enable *bool
+ EnableSyncWithLdap *bool
+ EnableSyncWithLdapIncludeAuth *bool
Verify *bool
Encrypt *bool
@@ -1500,6 +1501,10 @@ func (s *SamlSettings) SetDefaults() {
s.EnableSyncWithLdap = NewBool(false)
}
+ if s.EnableSyncWithLdapIncludeAuth == nil {
+ s.EnableSyncWithLdapIncludeAuth = NewBool(false)
+ }
+
if s.Verify == nil {
s.Verify = NewBool(true)
}