Performs an LDAP search operation to search the directory from your plug-in.
Syntax
#include "slapi-plugin.h"
Slapi_PBlock *slapi_search_internal( char *base, int scope,
char *filter, LDAPControl **controls, char **attrs,
int attrsonly );
Parameters
The function has the following parameters:
Returns. A new parameter block (see "Slapi_PBlock" on page 215) with the following
parameters set:
When you are done working with the search results, you should free the results in the parameter block by calling the slapi_free_search_results_internal() function.
Description. This function allows you to search the directory from a plug-in function. The
arguments for this function are similar to the arguments for the standard
ldap_search() function in the Netscape LDAP C SDK.
Unlike the standard LDAP search operation, no data is sent to a client:
Although these tasks are not performed during an internal search operation, you can write your own callback functions that are invoked when these events occur. For details, see "slapi_search_internal_callback()" on page 336.
Example
[To be added]
See Also