mandiant/gocrack

LDAP connection never closed

Closed this issue · 1 comments

Hi, I noticed that the LDAP connection was never closed in ldap.go (Login method), thus resulting in connections not being performed after the TCP connection timed out on the LDAP server.

Adding a "defer s.Close()" worked for me.

Thanks for the issue! I'll fix it shortly.