diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-09-01 10:03:55 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-09-01 10:03:55 -0400 |
commit | 276e0189b1453b3b869f9ae834482d672b832158 (patch) | |
tree | ecac47da72f4954491c108b68b296c244a87c151 /utils | |
parent | e1e29a86d9f7da84d25fe205287eb0a9e0fecd2d (diff) | |
download | chat-276e0189b1453b3b869f9ae834482d672b832158.tar.gz chat-276e0189b1453b3b869f9ae834482d672b832158.tar.bz2 chat-276e0189b1453b3b869f9ae834482d672b832158.zip |
Making LDAP FirstName and LastName fields optional. (#3919)
Diffstat (limited to 'utils')
-rw-r--r-- | utils/config.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/config.go b/utils/config.go index 9bb294281..bb21e50c1 100644 --- a/utils/config.go +++ b/utils/config.go @@ -281,6 +281,8 @@ func getClientConfig(c *model.Config) map[string]string { props["EnableLdap"] = strconv.FormatBool(*c.LdapSettings.Enable) props["LdapLoginFieldName"] = *c.LdapSettings.LoginFieldName props["NicknameAttributeSet"] = strconv.FormatBool(*c.LdapSettings.NicknameAttribute != "") + props["FirstNameAttributeSet"] = strconv.FormatBool(*c.LdapSettings.FirstNameAttribute != "") + props["LastNameAttributeSet"] = strconv.FormatBool(*c.LdapSettings.LastNameAttribute != "") } if *License.Features.MFA { |