Prepares a parameter block for an internal modify operation.
#include "slapi-plugin.h" int slapi_modify_internal_set_pb(Slapi_PBlock *pb, const char *dn, LDAPMod **mods, LDAPControl **controls, const char *uniqueid, Slapi_ComponentId *plugin_identity, int operation_flags);
This function takes the following parameters:
Parameter block for the internal modify operation
Distinguished Name of the entry to modify
Array of modifications to apply
Array of controls to request for the modify operation
Unique identifier for the entry if using this rather than DN
Plug-in identifier obtained from SLAPI_PLUGIN_IDENTITY during plug-in initialization
NULL or SLAPI_OP_FLAG_NEVER_CHAIN
This function returns 0 if successful. Otherwise, it returns an LDAP error code.
This function prepares a parameter block for use with slapi_modify_internal_pb().
Allocate the parameter block using slapi_pblock_new() before calling this function.
Directory Server does not free the parameters you passed to this function.
Free the parameter block after calling slapi_modify_internal_pb() .