Specifies an entry callback function. The server calls this function when the internal search implemented to trigger this callback finds an LDAP entry.
#include "slapi-plugin.h" typedef int (*plugin_search_entry_callback)(Slapi_Entry *e, void *callback_data);
The callback takes the following parameters.
Table 15–9 plugin_search_entry_callback Parameters
Parameter |
Description |
---|---|
e |
Pointer to the entry found by the search. |
callback_data |
Pointer passed to the internal search operation. Use this to pass your own data between the callback function and the body of the plug-in. |
Pass this as the psec parameter of slapi_search_internal_callback_pb(). Each time the internal search finds a referral entry, it calls this function.
The callback must return 0 to continue the search, -1 to interrupt the search.