ldap_perror() function prints the last LDAP error message to standard output. The routine precedes this error message with the text you supply as the s parameter. For more information, see "Printing Out Error Messages" on page 79.
#include <ldap.h>
void ldap_perror( LDAP *ld, const char *s );
ld |
Connection handle, which is a pointer to an |
s |
...
if ( ldap_search_s( ld, my_searchbase, LDAP_SCOPE_SUBTREE, my_filter,
get_attr, 0, &result ) != LDAP_SUCCESS ) {
ldap_perror( ld, "ldap_search_s" );
return( 1 );
...
ldap_get_lderrno(), ldap_err2string(), ldap_result2error(), ldap_set_lderrno().
Last Updated: 10/01/98 17:06:23