ldap_is_ldap_url()--Verify LDAP URL
Syntax
#include <ldap.h> int ldap_is_ldap_url( char *url)
Default Public Authority: *USE
Library Name/Service Program: QSYS/QGLDCLNT
Threadsafe: Yes
The ldap_is_ldap_url() function is used to check a 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_utf8() -- Verify UTF-8 codepage LDAP URL.
- ldap_url_parse() -- Break up an 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: V4R3
[ Back to top | LDAP APIs | APIs by category ]