Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual page 185

Table of Contents

Advertisement

In your plug-in initialization function, register your function for sending
2.
results to the client by setting the
SLAPI_PLUGIN_POST_RESULT_FN
and if it is a pre-operation or post-operation, respectively) in the parameter
block to the name of your function.
See
slapi_send_ldap_result()
sends LDAP result codes to clients.
See Also
slapi_send_ldap_result()
send_ldap_search_entry_fn_ptr_t
send_ldap_result_fn_ptr_t
you can write to send search results (entries found by a search) back to the client.
You can register your function so that it is called whenever the
slapi_send_ldap_search_entry()
Syntax
#include "slapi-plugin.h"
typedef int (*send_ldap_search_entry_fn_ptr_t)
( Slapi_PBlock *pb, Slapi_Entry *e, LDAPControl **ectrls,
char **attrs, int attrsonly );
Description
The
slapi_send_ldap_search_entry()
entries found by a search back to the client. You can replace the function that sends
entries to the client with your own function. To do this:
Write a function with the prototype specified by
1.
send_ldap_search_entry_fn_ptr_t
In your plug-in initialization function, register your function by setting the
2.
SLAPI_PLUGIN_PRE_ENTRY_FN
of your function if you are using the pre-operation plug-in. If you are using the
post-operation plug-in, register your function by setting the
SLAPI_PLUGIN_POST_ENTRY_FN
of your function.
See
slapi_send_ldap_search_entry()
that sends entries to clients.
SLAPI_PLUGIN_PRE_RESULT_FN
parameter (depending on the type of plug-in,
for information on the default function that
specifies the prototype for a callback function that
function is called.
function is responsible for sending
.
parameter in the parameter block to the name
parameter in the parameter block to the name
for information on the default function
Chapter 14
Summary of Data Types and Structures
or
Data Type and Structure Reference
185

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents