ldap_result2error() returns the corresponding error code for a result produced by the ldap_result() and ldap_search_s() functions.
Note that although this function is still supported in the Netscape Directory SDK 3.0 for C release for backward-compatibility, its use is deprecated. (See "Backward Compatibility with Earlier Releases" on page 20.)
If you are writing a new client, you should use the ldap_parse_result() function instead.
#include <ldap.h>
int ldap_result2error( LDAP *ld, LDAPMessage *r, int freeit );
ld |
Connection handle, which is a pointer to an |
r |
Pointer to the |
freeit |
LDAP structure and returns the error code. (See "Result Codes" on page 691 for a complete listing of error codes.) LDAP_PARAM_ERROR. ldap_result().
ldap_parse_result(), ldap_get_lderrno(), ldap_err2string(), ldap_result(), ldap_set_lderrno().
Last Updated: 10/01/98 17:06:23