ldap_is_ldap_url()--Verify LDAP URL




Syntax

#include <ldap.h>

int ldap_is_ldap_url(
		char 	*url)



Threadsafe: Yes

The ldap_is_ldap_url() function is used to check a string to verify if it could be an LDAP URL. It can be used as a quick check for an LDAP URL.

Authorities and Locks

No OS/400 authority is required. All authority checking is done by the LDAP server.

Parameters

url
(Input) Specifies a pointer to the URL string.

Return Value

NON-ZERO
if url begins with ldap://.
ZERO
if not LDAP URL.

Error Conditions

ldap_is_ldap_url() return a ZERO if the input string (url) does not begin with ldap://.

Error Messages

    The following message may be set from this function.
    CPF3CF2 E  Error(s) occurred during running of ldap_is_ldap_url API.

Related Information

    ldap_free_urldesc() -- Frees an LDAP URL description.
    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. 


Top | LDAP APIs List
APIs by category

[Information Center Home Page | Feedback ] [Legal | AS/400 Glossary]