catch stacktrace from failed ldap_bind