LDAP synchronous bind
string, DN to bind
string, credentials (password in case of LDAP_AUTH_SIPLE)
0 if case of success, LDAP error otherwise
See Implementation
LDAP synchronous bind