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

plugin_search_entry_callback

Specifies an entry callback function. The server calls this function when the internal search implemented to trigger this callback finds an LDAP entry.

Syntax

#include "slapi-plugin.h"
typedef int (*plugin_search_entry_callback)(Slapi_Entry *e,
    void *callback_data);

Parameters

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. 

Description

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.

Returns

The callback must return 0 to continue the search, -1 to interrupt the search.