HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
18 Functions for setting internal operation flags
This chapter contains reference information on routines for setting internal-operation flags.
Table 18-1 Internal operation flag routines
DescriptionFunction
Sets up a parameter block so that it can be used by slapi_add_internal_pb()
for an internal add operation.
“slapi_add_entry_internal_set_pb()”
Sets up a parameter block so that it can be used by slapi_add_internal_pb()
for an internal add operation; the entry is constructed from a DN and a set of
attributes.
“slapi_add_internal_set_pb()”
Sets up a parameter block so that it can be used by slapi_delete_internal_pb()
for an internal delete operation.
“slapi_delete_internal_set_pb()”
Sets up a parameter block so that it can be used by slapi_modify_internal_pb()
for an internal modify operation.
“slapi_modify_internal_set_pb()”
Sets up a parameter block so that it can be used by slapi_modrdn_internal_pb()
for an internal rename operation.
“slapi_rename_internal_set_pb()”
Sets up a parameter block so that it can be used by slapi_search_internal_pb()
for an internal search operation.
“slapi_search_internal_set_pb()”
Performs an internal sequential access operation.“slapi_seq_internal_callback_pb()”
Sets up a parameter block for use by “slapi_seq_internal_callback_pb()” for
an internal sequential-access operation.
“slapi_seq_internal_set_pb()”
18.1 slapi_add_entry_internal_set_pb()
Description This function populates parameters in the pblock structure so that it can be used
by slapi_add_internal_pb() for an internal add operation.
Syntax
#include "slapi-plugin.h"
void slapi_add_entry_internal_set_pb(Slapi_PBlock *pb, Slapi_Entry *e,
LDAPControl **controls, Slapi_ComponentId *plugin_identity,
int operation_flags);
Parameters This function takes the following parameters:
Parameter block populated with add parameters.
pb
Entry to be added.
e
List of controls associated with the operation.
controls
Plug-in identity; a cookie that identifies the plug-in to the Directory Server during an
internal operation. This cookie is used by the server to retrieve the plug-in configuration
in order to determine whether to allow the operation and which actions to take during
the operation processing. Plug-in identity is passed to the plug-in initialization function
in the SLAPI_PLUGIN_IDENTITYpblock parameter. A plug-in must save this
information and pass it to every internal operation issued by the plug-in.
plugin_identity
Actions taken during operation processing.
operation_flags
18.2 slapi_add_internal_set_pb()
Description This function sets up a parameter block so that it can be used by
slapi_add_internal_pb() for an internal add operation. This function is similar to
18.1 slapi_add_entry_internal_set_pb() 165