diff --git a/cmd/main.go b/cmd/main.go index 4f8f143..5a0f64f 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -550,6 +550,7 @@ func (c *SyncConfig) infoData(force bool) error { if err != nil { return err } + defer ls.Close() err = ls.Bind(c.env["LDAP_SOURCE_BINDDN"], c.env["LDAP_SOURCE_PASSWORD"]) if err != nil {