ldap_get_errno()--Retrieve Error Information
Syntax
#include <ldap.h> int ldap_get_errno( LDAP *ld)
Default Public Authority: *USE
Library Name/Service Program: QSYS/QGLDCLNT
Threadsafe: Yes
The ldap_get_errno() function retrieves information about the most recent error that occurred for an LDAP operation. This function can be called for any LDAP API that does not return an error.
The ldap_get_lderrno() API returns more error information than ldap_get_errno().
Authorities and Locks
No IBM® i authority is required.
Parameters
- ld
- (Input) Specifies the LDAP pointer returned by a previous call to ldap_init(),
ldap_ssl_init(), or ldap_open().
Return Value
- LDAP error code
- See LDAP Client API Error Conditions for possible LDAP error codes values.
Error Messages
The following message may be sent from this function.
Message ID | Error Message Text |
---|---|
CPF3CF2 E | Error(s) occurred during running of ldap_get_errno API. |
Related Information
- ldap_err2string() -- Convert LDAP error indication to a string.
- ldap_get_lderrno() -- Retrieve Error Information.
- ldap_perror() -- Print an LDAP error indication to standard error.
- ldap_result2error() -- Extract LDAP error indication from LDAP result.
API introduced: V4R3
[ Back to top | LDAP APIs | APIs by category ]