diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/config.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/config.go b/utils/config.go index 79d1d8e4b..60d09dee3 100644 --- a/utils/config.go +++ b/utils/config.go @@ -186,6 +186,12 @@ func LoadConfig(fileName string) { Cfg = &config ClientCfg = getClientConfig(Cfg) + + // Actions that need to run every time the config is loaded + if ldapI := einterfaces.GetLdapInterface(); ldapI != nil { + // This restarts the job if nessisary (works for config reloads) + ldapI.StartLdapSyncJob() + } } func getClientConfig(c *model.Config) map[string]string { |