#include <ldap.h> int ldap_url_search( LDAP *ld, char *url, int attrsonly)
The ldap_url_search() function is used to perform an asynchronous LDAP search based on the contents of the url parameter.
This function acts like ldap_search() except that the search parameters are specified by the URL.
This routine supports the use of LDAP URLs (Uniform Resource Locators).
LDAP URLs look like this:
ldap[s]://[hostport][/[dn[?[attributes][?[scope][?[filter]]]]]]
where:
For example:
ldap://example.ibm.com/c=US?o,description?one?o=ibm
URLs that are wrapped in angle-brackets and/or preceded by "URL:" are also tolerated, including the form url:ldapurl.
For example:
URL:ldap://example.ibm.com/c=US?o,description?one?o=ibm
This form also is allowed: <url:ldapurl>.
For example:
<URL:ldap://example.ibm.com/c=US?o,description?one?o=ibm>
Notes:
None.
If ldap_url_search() is not successful, -1 will be returned setting the session error parameters (ld_error) in the LDAP structure appropriately, which can be obtained by using ldap_get_lderrno(). See LDAP Client API Error Conditions for possible LDAP error code values.
The following message may be sent from this function.
Message ID | Error Message Text |
---|---|
CPF3CF2 E | Error(s) occurred during running of ldap_url_search API. |
Top | LDAP APIs | APIs by category |