#include <ldap.h>
int ldap_result2error(
LDAP *ld,
LDAPMessage *res,
int freeit)
|
The ldap_result2error() API takes res, a result as produced by ldap_result() or ldap_search_s(), and returns the corresponding error code. Possible error codes are listed below. If the freeit parameter is nonzero it indicates that the res parameter should be freed by a call to the ldap_msgfree() API after the error code has been extracted. The ld_errno field in ld is set and returned.
See ldap_error_condt() for possible values for the error codes and their description.
No OS/400 authority is required. All authority checking is done by the LDAP server.
ldap_result2error() will return LDAP error code. See LDAP Client API Error Conditions for possible LDAP error codes.
The following message may be set from this function.
CPF3CF2 E Error(s) occurred during running of ldap_result2error API.
ldap_get_errno() -- Retrieve Error Code set.
ldap_perror() -- Print an LDAP error indication to standard error.
ldap_err2string() -- Convert LDAP error indication to a string.
|
Top
| LDAP APIs List APIs by category |
| [Information Center Home Page | Feedback ] | [Legal | AS/400 Glossary] |