Syntax
#include "slapi-plugin.h" typedef void (*send_ldap_result_fn_ptr_t)( Slapi_PBlock *pb, int err, char *matched, char *text, int nentries, struct berval **urls ); Parameters
#include "slapi-plugin.h" typedef void (*send_ldap_result_fn_ptr_t)( Slapi_PBlock *pb, int err, char *matched, char *text, int nentries, struct berval **urls );
The function has the following parameters:
pb
err
matched
text
nentries
urls
Description
The slapi_send_ldap_result() function is responsible for sending LDAP result codes back to the client. You can replace the function that sends LDAP result codes to the client with your own function. To do this:
Write a function with the prototype specified by send_ldap_result_fn_ptr_t.
In your plug-in initialization function, register your function by setting the SLAPI_PLUGIN_DB_RESULT_FN parameter in the parameter block to the name of your function.
See Also
slapi_send_ldap_result().