ldap_err2string() function returns the corresponding error message for an error code. For more information, see "Getting the Error Message" on page 78.
#include <ldap.h>
char * ldap_err2string( int err );
err |
err_msg to the error message corresponding to the error code returned by the ldap_simple_bind_s() function.
#include <ldap.h>
...
LDAP *ld;
char *dn = "uid=bjensen, ou=People, o=Airius.com";
char *pw = "hifalutin";
char *err_msg;
...
err_msg = ldap_err2string( ldap_simple_bind_s( ld, dn, pw ) );
...
ldap_get_lderrno(), ldap_perror(), ldap_result2error(), ldap_set_lderrno().
Last Updated: 10/01/98 17:06:23