ldap_set_iconv_local_codepage() -- Set the Active LDAP Code Page


  Syntax
 #include <ldap.h>
 
 int
 ldap_set_iconv_local_codepage ( char *codepage )

  Default Public Authority: *USE

  Library Name/Service Program: QSYS/QGLDCLNT

  Threadsafe: Yes

The ldap_set_iconv_local_codepage() API is used to set a global variable, ldap_global_codepage, to a value passed by codepage or to a value associated with a locale if codepage is NULL.

NOTE that the word local in the API refers to the value of the global variable ldap_global_codepage if it is set or a codepage value associated with the current locale.


Authorities and Locks

No IBM® i authority is required.


Parameters

codepage
(input) specifies local code page value.

Return Value

LDAP_SUCCESS
if the request was successful.

Other LDAP error code
if the request was not successful.

Error Conditions

The ldap_set_iconv_local_codepage() API will return an LDAP error code if not successful. See LDAP Client API Error Conditions for possible values for LDAP error codes.


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


Related Information



API introduced: V4R5

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