diff options
Diffstat (limited to 'cmd/commands/ldap.go')
-rw-r--r-- | cmd/commands/ldap.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/commands/ldap.go b/cmd/commands/ldap.go index 6938eae28..0c79ce32b 100644 --- a/cmd/commands/ldap.go +++ b/cmd/commands/ldap.go @@ -34,6 +34,7 @@ func ldapSyncCmdF(command *cobra.Command, args []string) error { if err != nil { return err } + defer a.Shutdown() if ldapI := a.Ldap; ldapI != nil { job, err := ldapI.StartSynchronizeJob(true) |