Chapter 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

Function
Description
Sets up a parameter block so that it can be used by slapi_add_internal_pb() for an internal add operation.
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.
Sets up a parameter block so that it can be used by slapi_delete_internal_pb() for an internal delete operation.
Sets up a parameter block so that it can be used by slapi_modify_internal_pb() for an internal modify operation.
Sets up a parameter block so that it can be used by slapi_modrdn_internal_pb() for an internal rename operation.
Sets up a parameter block so that it can be used by slapi_search_internal_pb() for an internal search operation.
Performs an internal sequential access operation.
Sets up a parameter block for use by slapi_seq_internal_callback_pb() for an internal sequential-access operation.

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:

pb Parameter block populated with add parameters.
e Entry to be added.
controls List of controls associated with the operation.
plugin_identity 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_IDENTITY pblock parameter. A plug-in must save this information and pass it to every internal operation issued by the plug-in.
operation_flags Actions taken during operation processing.