Synchronously authenticates a specified entry to the directory. This function has been deprecated; use the ldap_simple_bind_s function.
#include <ldap.h>
int ldap_bind_s (
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
|
0x00 |
LDAP_SUCCESS |
|
Non-zero |
Failure. For a complete list, see |
|
0x54 |
LDAP_DECODING_ERROR |
|
0x56 |
LDAP_AUTH_UNKNOWN |
|
0x59 |
LDAP_PARAM_ERROR |
|
0x5A |
LDAP_NO_MEMORY |
|
0x5C |
LDAP_NOT_SUPPORTED |