send_ldap_referral_fn_ptr_t specifies the prototype for a callback function that you can write to send LDAP v3 referrals (search result references) back to the client. You can register your function so that it is called whenever the slapi_send_ldap_referral() function is called.
Syntax
#include "slapi-plugin.h"
typedef int (*send_ldap_referral_fn_ptr_t)( Slapi_PBlock *pb,
Slapi_Entry *e, struct berval **refs, struct berval ***urls);
Parameters
The function has the following parameters:
Returns.
0 if successful, or -1 if an error occurs.
Description. The slapi_send_ldap_referral() function is responsible for sending
LDAP v3 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 send_ldap_result_fn_ptr_t.
In your plug-in initialization function, register your function by setting the SLAPI_PLUGIN_DB_REFERRAL_FN parameter in the parameter block to the name of your function.
See "slapi_send_ldap_referral()" on page 339 for information on the default function that sends LDAP v3 referrals to clients.
Example
[To be added]
See Also
slapi_send_ldap_referral().