Sun Java System Directory Server Enterprise Edition 6.0 Developer's Guide


Performs an LDAP search operation based on a parameter block to search the directory.


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


This function takes the following parameter:


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


This function returns -1 if the parameter passed is a NULL pointer. Otherwise, it returns 0.

After your code calls this function, the server sets SLAPI_PLUGIN_INTOP_RESULT in the parameter block to the appropriate LDAP result code. You can therefore check SLAPI_PLUGIN_INTOP_RESULT in the parameter block to determine whether an error has occurred.


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

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().