Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 166

Table of Contents

Advertisement

Summary of Data Types and Structures
urls
Returns
0 if successful, or -1 if an error occurs.
Description
The
slapi_send_ldap_result()
referrals (search result references) back to the client. You can replace the function
that sends LDAP v3 referrals to the client with your own function. To do this:
Write a function with the prototype specified by
1.
send_ldap_result_fn_ptr_t
In your plug-in initialization function, register your function by setting the
2.
SLAPI_PLUGIN_DB_REFERRAL_FN
name of your function.
See
slapi_send_ldap_result()
sends LDAP v3 referrals to clients.
See Also
slapi_send_ldap_result()
send_ldap_result_fn_ptr_t
send_ldap_result_fn_ptr_t
you can write to send LDAP result codes back to the client. You can register your
function so that it is called whenever the
called.
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
The function has the following parameters:
pb
166
Netscape Directory Server Plug-In Programmer's Guide • May 2002
Pointer to the array of berval structures used to collect LDAP referrals
for LDAP v2 clients.
function is responsible for sending LDAP v3
.
for information on the default function that
specifies the prototype for a callback function that
Parameter block.
parameter in the parameter block to the
slapi_send_ldap_result()
function is

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents