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 i5/OS 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



API introduced: V4R3
Top | LDAP APIs | APIs by category