HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
17.5 slapi_modrdn_internal_pb()
Description This function performs an internal modify RDN operation based on a parameter
block to rename a directory entry. The parameter block should be initialized by calling
slapi_rename_internal_set_pb().
Syntax
#include "slapi-plugin.h"
int slapi_modrdn_internal_pb(Slapi_PBlock *pb);
Parameters This function takes the following parameter:
A parameter block that has been initialized using
slapi_rename_internal_set_pb().
pb
Returns This function returns one of the following values:
0 if successful.
-1 if an error occurs. If -1 is returned, the SLAPI_PLUGIN_INTOP_RESULT field of the
parameter block should be consulted to determine the precise LDAP result code.
Memory concerns None of the parameters that are passed to
slapi_modrdn_internal_set_pb() are altered or consumed by this function.
17.6 slapi_search_internal_callback_pb()
Description Performs an LDAP search operation based on a parameter block to search the
directory. Unlike slapi_search_internal_pb(), this function allows you to specify callback functions
that are invoked when the search operation finds matching entries or entries with referrals.
Syntax
#include "slapi-plugin.h"
int slapi_search_internal_callback_pb(Slapi_PBlock *pb,
void *callback_data,
plugin_result_callback prc, plugin_search_entry_callback psec,
plugin_referral_entry_callback prec);
Parameters This function takes the following parameters:
A parameter block that has been initialized using
slapi_seq_internal_callback_set_pb().
pb
A pointer to arbitrary plug-in or operation-specific data that you would like to pass to
your callback functions.
callback_data
Callback function that the server calls to send result codes. The function must have the
prototype specified by plugin_result_callback.
prc
Callback function that the server calls when finding a matching entry in the directory.
The function must have the prototype specified by plugin_search_entry_callback.
psec
Callback function that the server calls when finding an entry that contains LDAPv3
referrals. The function must have the prototype specified by
plugin_referral_entry_callback.
prec
Returns This function returns one of the following values:
0 if successful.
-1 if an error occurs. If -1 is returned, the SLAPI_PLUGIN_INTOP_RESULT field of the
parameter block should be consulted to determine the precise LDAP result code.
Memory concerns The entries passed to the search entry callback function do not need to be
freed. If you need to access an entry after returning from the callback function, call
“slapi_entry_dup()” to make a copy.
17.5 slapi_modrdn_internal_pb() 161