ldap_get_errno()--Retrieve Error Information




Syntax

#include <ldap.h>

int ldap_get_errno(
         LDAP        *ld)



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.

Authorities and Locks

No OS/400 authority is required. All authority checking is done by the LDAP server.

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 set from this function.
    CPF3CF2 E  Error(s) occurred during running of ldap_get_errno API.

Related Information

    ldap_err2string() -- Convert LDAP error indication to a string.
    ldap_perror() --  Print an LDAP error indication to standard error.
    ldap_result2error() -- Extract LDAP error indication from LDAP result.


Top | LDAP APIs List
APIs by category

[Information Center Home Page | Feedback ] [Legal | AS/400 Glossary]