Initial Release 6

Function : LDAP
ldap_search - Asynchronous search of the LDAP directory.
----------------------------------------------------------------------------------------------------------

#include <ldap.h>

int LNPUBLIC ldap_search(
LDAP *ld,
const char *base,
int scope,
const char *filter,
char **attrs,
int attrsonly);

Description :

This function performs an asynchronous search of the LDAP directory and returns a requested set of attributes for each entry matched.

Parameters :

Sample Usage :


char *attrs[] = { "mail", "title", 0 };
msgid = ldap_search( ld, "c=us@o=UM", LDAP_SCOPE_SUBTREE, "cn~=bob", attrs, attrsonly );

See Also :

LDAP_SCOPE_xxx
----------------------------------------------------------------------------------------------------------