ldap_perror()--Print LDAP Error Information




Syntax

#include <ldap.h>

void ldap_perror(
		LDAP 	*ld,
                char 	*s)



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.

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

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().
s
(Input) Specifies the message prefix, which is prepended to the string form of the error code held stored under 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

ldap_perror() API does not return an error code.

Error Messages

    The following message may be set from this function.
    CPF3CF2 E  Error(s) occurred during running of ldap_perror API.

Related Information

    ldap_get_errno() -- Retrieve Error Code set.
    ldap_err2string() --  Convert LDAP error indication to a string.
    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]