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



API introduced: V4R3

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