#include <ldap.h> int ldap_get_lderrno( LDAP *ld, char **dn, char **errmsg)
The ldap_get_lderrno() 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.
When an error occurs at the LDAP server, the server returns both an LDAP result code and a message containing any additional information about the error from the server. If the error occurred because an entry specified by a Distinguished Name (DN) could not be found, the server may also return the portion of the DN that identifies an existing entry. Use ldap_get_lderrno() to obtain both the message containing error information and the matched DN.
No i5/OS authority is required.
The following message may be sent from this function.
Message ID | Error Message Text |
---|---|
CPF3CF2 E | Error(s) occurred during running of ldap_get_lderrno API. |
Top | LDAP APIs | APIs by category |