17.8. slapi_search_internal_pb()

This function performs an internal LDAP search based on a parameter block to search the directory. The parameter block should be initialized by calling the slapi_search_internal_set_pb() function.
Syntax

 

#include "slapi-plugin.h"
int slapi_search_internal_pb(Slapi_PBlock *pb);
Parameters

This function takes the following parameter:

pb A parameter block that has been initialized using slapi_search_internal_set_pb().
Returns

This function returns one of the following values:

  • 0 if successful.
  • -1 if an error occurs. If -1 is returned, the SLAPI_PLUGIN_INTOP_RESULT field of the parameter block should be consulted to determine the precise LDAP result code.
Memory Concerns

slapi_free_search_results_internal() should be called to dispose of any entires and other items that were allocated by a call to slapi_search_internal_pb().