Custom Perl application is failing to authenticate against AD (2008 R2 x64).
It uses secure LDAP connection (port 636) and fails with error "First bind failed! I/O Error Connection reset by peer".
But OpenLDAP's client CLI command ldapsearch connects without any trouble.
Is it possible to log LDAP connections/queries on server's side?