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
Этот коммит содержится в:
@@ -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())
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user