#include <ldap.h> int ldap_bind_s( LDAP *ld, const char *dn, const char *cred, int method)
The ldap_bind_s() function provide synchronous general authentication routines, where in principle an authentication method can be chosen. In this toolkit, method must be set to LDAP_AUTH_SIMPLE.
The ldap_bind_s() function is used to authenticate a distinguished name (DN) to a directory server. When connecting to an LDAP V2 server, after a connection is made by using the ldap_open() API, an LDAP bind API must be called before any other LDAP APIs can be called for that connection. Binding the connection is not required for LDAP V3.
ldap_bind_s() is synchronous request.
Since this APIs is deprecated, ldap_simple_bind_s() should be used instead.
No i5/OS authority is required. All authority checking is done by the LDAP server.
Note that use of the ldap_bind_s() APIs is deprecated.
The ldap_bind_s() API will return an LDAP error code if not successful. See LDAP Client API Error Conditions for possible LDAP error code values.
The following message may be sent from this function.
Message ID | Error Message Text |
---|---|
CPF3CF2 E | Error(s) occurred during running of ldap_bind_s API. |
Top | LDAP APIs | APIs by category |