ldap_is_ldap_url_utf8()--Verify UTF-8 codepage LDAP URL
Syntax
#include <ldap.h>
int ldap_is_ldap_url_utf8(
char *url)
Default Public Authority: *USE
Library Name/Service Program: QSYS/QGLDCLNT
Threadsafe: Yes
The ldap_is_ldap_url_utf8() function is used to check a UTF-8 codepage string to determine if it could be an LDAP URL. It can be used as a quick check for an LDAP URL.
Authorities and Locks
No IBM® i authority is required.
Parameters
- url
- (Input) Specifies a pointer to the URL string.
Return Value
- non-zero
- if url begins with "ldap://" or "ldaps://".
- 0
- if url is not an LDAP URL.
Related Information
- ldap_is_ldap_url() -- Verify LDAP URL.
- ldap_url_parse_utf8() -- Break up a UTF-8 codepage LDAP URL string into its components.
- ldap_url_search() -- Asynchronously search using an LDAP URL.
- ldap_url_search_s() -- Synchronously search using an LDAP URL.
- ldap_url_search_st() -- Synchronously search using an LDAP URL and a timeout.
API introduced: V5R4
[ Back to top | LDAP APIs | APIs by category ]