Begins the DIGEST-MD5 SASL bind process.
#include <ldap.h> int ldap_bind_digest_md5_start ( LDAP *ld, LDAP_DIGEST_MD5_CONTEXT *digestMD5ctx );
(IN) the handle for the LDAP session.
(IN) A pointer to an LDAP_DIGEST_MD5_CONTEXT variable that will be initialized with a new DIGEST-MD5 login context. This context must be used in a sebsequent call to ldap_bind_digest_md5_finish.
0x00 |
LDAP_SUCCESS |
Non-zero |
Failure. For a complete list, see |
The LDAP_OPT_NETWORK_TIMEOUT option (set by calling ldap_set_option) enables you to set a timeout for the initial connection to a server. If no timeout is set, timeout depends upon the underlying socket timeout setting of the operating system.
Using the connection timeout, you can also specify multiple hosts separated by spaces in a bind call, then use a timeout to determine how long your application will wait for an initial response before attempting a connection to the next host in the list.
Passing NULL for the ld parameter of ldap_set_option sets this timeout as the default connection timeout for subsequent session handles created with ldap_init or ldapssl_init. To clear the timeout pass NULL for the invalue parameter of ldap_set_option.
A connection timeout will cause an LDAP_SERVER_DOWN error (81) "Can't contact LDAP server".