diff --git a/model/config.go b/model/config.go
index 32cb501a01..eedd0d116a 100644
--- a/model/config.go
+++ b/model/config.go
@@ -1013,14 +1013,6 @@ func (o *Config) IsValid() *AppError {
return NewLocAppError("Config.IsValid", "model.config.is_valid.ldap_basedn", nil, "")
}
- if *o.LdapSettings.FirstNameAttribute == "" {
- return NewLocAppError("Config.IsValid", "model.config.is_valid.ldap_firstname", nil, "")
- }
-
- if *o.LdapSettings.LastNameAttribute == "" {
- return NewLocAppError("Config.IsValid", "model.config.is_valid.ldap_lastname", nil, "")
- }
-
if *o.LdapSettings.EmailAttribute == "" {
return NewLocAppError("Config.IsValid", "model.config.is_valid.ldap_email", nil, "")
}
diff --git a/store/sql_user_store.go b/store/sql_user_store.go
index 61bfa35b8a..fff78c8f28 100644
--- a/store/sql_user_store.go
+++ b/store/sql_user_store.go
@@ -132,8 +132,6 @@ func (us SqlUserStore) Update(user *model.User, trustedUpdateData bool) StoreCha
user.Email = oldUser.Email
} else if user.IsLDAPUser() && !trustedUpdateData {
if user.Username != oldUser.Username ||
- user.FirstName != oldUser.FirstName ||
- user.LastName != oldUser.LastName ||
user.Email != oldUser.Email {
result.Err = model.NewLocAppError("SqlUserStore.Update", "store.sql_user.update.can_not_change_ldap.app_error", nil, "user_id="+user.Id)
storeChannel <- result
diff --git a/utils/config.go b/utils/config.go
index 9bb294281d..bb21e50c1a 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 {
diff --git a/webapp/components/admin_console/ldap_settings.jsx b/webapp/components/admin_console/ldap_settings.jsx
index 32cdbab3ad..23728870ec 100644
--- a/webapp/components/admin_console/ldap_settings.jsx
+++ b/webapp/components/admin_console/ldap_settings.jsx
@@ -236,7 +236,7 @@ export default class LdapSettings extends AdminSettings {
helpText={