ldap_perror()--Print LDAP Error Information



  Syntax
 #include <ldap.h>

 void ldap_perror(
                LDAP        *ld,
                const char  *s)

  Default Public Authority: *USE

  Library Name/Service Program: QSYS/QGLDCLNT

  Threadsafe: Yes

The ldap_perror() function prints an indication of the error on standard error. The error string printed out will be in English only.


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().
s
(Input) Specifies the message prefix, which is prepended to the string form of the error code stored in the LDAP structure. The string form of the error is the same string that would be returned by a call to ldap_err2string().

Return Value

None.


Error Conditions

The ldap_perror() API does not return an error code.


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_perror API.


Related Information



API introduced: V4R3

[ Back to top | LDAP APIs | APIs by category ]