summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-04-13 19:31:01 -0400
committerCorey Hulen <corey@hulen.com>2016-04-13 16:31:01 -0700
commit8c2c8921446c0e098fdbc1e4287fc5e9b475d88a (patch)
treefc83c5009bbbe7c73da19cd8e8dbfb69f99793cd /utils
parentc801ce7cd74e7963dbe3b49601f84830dec16bd0 (diff)
downloadchat-8c2c8921446c0e098fdbc1e4287fc5e9b475d88a.tar.gz
chat-8c2c8921446c0e098fdbc1e4287fc5e9b475d88a.tar.bz2
chat-8c2c8921446c0e098fdbc1e4287fc5e9b475d88a.zip
Allow customization of LDAP login fields (#2692)
Diffstat (limited to 'utils')
-rw-r--r--utils/config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/config.go b/utils/config.go
index 244ff7180..3cafb9d2f 100644
--- a/utils/config.go
+++ b/utils/config.go
@@ -241,6 +241,8 @@ func getClientConfig(c *model.Config) map[string]string {
props["ProfileWidth"] = fmt.Sprintf("%v", c.FileSettings.ProfileWidth)
props["EnableLdap"] = strconv.FormatBool(*c.LdapSettings.Enable)
+ props["LdapLoginFieldName"] = *c.LdapSettings.LoginFieldName
+ props["LdapPasswordFieldName"] = *c.LdapSettings.PasswordFieldName
props["WebsocketPort"] = fmt.Sprintf("%v", *c.ServiceSettings.WebsocketPort)
props["WebsocketSecurePort"] = fmt.Sprintf("%v", *c.ServiceSettings.WebsocketSecurePort)