ldap_get_locale()-- Get Active LDAP Locale
Syntax
#include <ldap.h> char *ldap_get_locale( )
Default Public Authority: *USE
Library Name/Service Program: QSYS/QGLDCLNT
Threadsafe: No
The ldap_get_locale() API is used to obtain the active LDAP locale. To free the returned string, use ldap_memfree().
Authorities and Locks
No IBM® i authority is required.
Parameters
No parameters are passed to ldap_get_locale().
Return Value
- Active LDAP Locale
- if the request was successful.
- NULL
- if the request was not successful.
Error Conditions
If ldap_get_locale() is not successful, it returns NULL.
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_locale API. |
Related Information
- ldap_xlate_local_to_utf8() -- Convert String From the Local to UTF-8 Code Page.
- ldap_xlate_utf8_to_local() -- Convert String From UTF-8 to Local Code Page.
- ldap_xlate_local_to_unicode() -- Convert String From the Local to UCS-2 Code Page.
- ldap_xlate_unicode_to_local() -- Convert String From UCS-2 to Local Code Page.
- ldap_get_iconv_local_codepage() -- Get the Active LDAP Code Page.
- ldap_set_iconv_local_codepage() -- Set the Active LDAP Code Page.
- ldap_set_iconv_local_charset() -- Set the Active LDAP Character set.
- ldap_set_locale() -- Change the Locale Used by LDAP.
API introduced: V4R5
[ Back to top | LDAP APIs | APIs by category ]