Uses the specified URL to perform a synchronous search operation.
#include <ldap.h> int ldap_url_search_s ( LDAP *ld, const char *url, int attrsonly, LDAPMessage **res);
(IN) Points to the handle for the LDAP session.
(IN) Points to the URL to use in the search operation.
(IN) Specifies whether attribute values are returned with the specified attributes.
0—return attributes and values
1—return only attributes
(OUT) Returns a pointer to an array of result messages if the search succeeds or NULL if no results are returned.
0x00 |
LDAP_SUCCESS |
Non-zero |
Failure. For a complete list, see |
To check the results of the operation, use the ldap_result or the ldap_result2error function.
Server timeouts and size limits for this function are set using the LDAP_OPT_TIMELIMIT and LDAP_OPT_SIZELIMIT options on the LDAP handle. This function has no client time or size limits.