PLT-7542 Converting LDAP sync to the job server (#7452)

* PLT-7542 Converting LDAP sync to the job server

* Fixing minor issues

* Fixing build failure

* Translate error message

* Translate error message

* Translate error message

* Translate error message

* Fixing merge

* Fixing bad merge
Этот коммит содержится в:
Corey Hulen
2017-09-25 13:30:33 -07:00
коммит произвёл GitHub
родитель 1bf2a2e8d5
Коммит 81c18a01bd
11 изменённых файлов: 119 добавлений и 22 удалений

Просмотреть файл

@@ -102,8 +102,6 @@ func (a *App) initEnterprise() {
if err := utils.ValidateLdapFilter(cfg, a.Ldap); err != nil {
panic(utils.T(err.Id))
}
a.Ldap.StartLdapSyncJob()
})
}
if metricsInterface != nil {

Просмотреть файл

@@ -15,7 +15,7 @@ func (a *App) SyncLdap() {
go func() {
if utils.IsLicensed() && *utils.License().Features.LDAP && *utils.Cfg.LdapSettings.Enable {
if ldapI := a.Ldap; ldapI != nil {
ldapI.SyncNow()
ldapI.StartSynchronizeJob(false)
} else {
l4g.Error("%v", model.NewAppError("SyncLdap", "ent.ldap.disabled.app_error", nil, "", http.StatusNotImplemented).Error())
}