Asynchronously authenticates a specified entry to the directory. This function has been deprecated; use the ldap_simple_bind function.
#include <ldap.h> int ldap_bind ( LDAP *ld, const char *dn, const char *cred, int method);
(IN) Points to the handle for the LDAP session which is returned by either the ldap_open or ldap_init function.
(IN) Points to the distinguished name of the entry to use for authentication, for example: "o=novell", "ou=provo", "cn=kim"
(IN) Points to the credentials to use for authentication
(IN) Specifies the authentication method. eDirectory supports the following methods:
LDAP_AUTH_NONE (0x00)— no authentication
LDAP_AUTH_SIMPLE (0x80)—context specific + primitive