mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fixing LDAP and SAML settings detection (#7605)
This commit is contained in:
committed by
Chris
parent
7c4e338a56
commit
675f13c808
@@ -518,9 +518,9 @@ func getClientConfig(c *model.Config) map[string]string {
|
|||||||
if *License.Features.LDAP {
|
if *License.Features.LDAP {
|
||||||
props["EnableLdap"] = strconv.FormatBool(*c.LdapSettings.Enable)
|
props["EnableLdap"] = strconv.FormatBool(*c.LdapSettings.Enable)
|
||||||
props["LdapLoginFieldName"] = *c.LdapSettings.LoginFieldName
|
props["LdapLoginFieldName"] = *c.LdapSettings.LoginFieldName
|
||||||
props["NicknameAttributeSet"] = strconv.FormatBool(*c.LdapSettings.NicknameAttribute != "")
|
props["LdapNicknameAttributeSet"] = strconv.FormatBool(*c.LdapSettings.NicknameAttribute != "")
|
||||||
props["FirstNameAttributeSet"] = strconv.FormatBool(*c.LdapSettings.FirstNameAttribute != "")
|
props["LdapFirstNameAttributeSet"] = strconv.FormatBool(*c.LdapSettings.FirstNameAttribute != "")
|
||||||
props["LastNameAttributeSet"] = strconv.FormatBool(*c.LdapSettings.LastNameAttribute != "")
|
props["LdapLastNameAttributeSet"] = strconv.FormatBool(*c.LdapSettings.LastNameAttribute != "")
|
||||||
}
|
}
|
||||||
|
|
||||||
if *License.Features.MFA {
|
if *License.Features.MFA {
|
||||||
@@ -535,9 +535,9 @@ func getClientConfig(c *model.Config) map[string]string {
|
|||||||
if *License.Features.SAML {
|
if *License.Features.SAML {
|
||||||
props["EnableSaml"] = strconv.FormatBool(*c.SamlSettings.Enable)
|
props["EnableSaml"] = strconv.FormatBool(*c.SamlSettings.Enable)
|
||||||
props["SamlLoginButtonText"] = *c.SamlSettings.LoginButtonText
|
props["SamlLoginButtonText"] = *c.SamlSettings.LoginButtonText
|
||||||
props["FirstNameAttributeSet"] = strconv.FormatBool(*c.SamlSettings.FirstNameAttribute != "")
|
props["SamlFirstNameAttributeSet"] = strconv.FormatBool(*c.SamlSettings.FirstNameAttribute != "")
|
||||||
props["LastNameAttributeSet"] = strconv.FormatBool(*c.SamlSettings.LastNameAttribute != "")
|
props["SamlLastNameAttributeSet"] = strconv.FormatBool(*c.SamlSettings.LastNameAttribute != "")
|
||||||
props["NicknameAttributeSet"] = strconv.FormatBool(*c.SamlSettings.NicknameAttribute != "")
|
props["SamlNicknameAttributeSet"] = strconv.FormatBool(*c.SamlSettings.NicknameAttribute != "")
|
||||||
}
|
}
|
||||||
|
|
||||||
if *License.Features.Cluster {
|
if *License.Features.Cluster {
|
||||||
|
|||||||
Reference in New Issue
Block a user