Prepares a parameter block for an internal add operation.
#include "slapi-plugin.h" int slapi_add_internal_set_pb(Slapi_PBlock *pb, const char *dn, LDAPMod **attrs, LDAPControl **controls, Slapi_ComponentId *plugin_identity, int operation_flags);
This function takes the following parameters:
Parameter block for the internal add operation
Distinguished Name of the entry to add
Array of attributes of the entry to add
Array of controls to request for the add operation
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_add_internal_pb() using the components of the entry.
If the entry has already been prepared as a Slapi_Entry structure, use slapi_add_entry_internal_set_pb() instead.
Allocate the parameter block using slapi_pblock_new() before calling this function.
Directory Server does not free the parameters passed to this function.
Free the parameter block after calling slapi_pblock_destroy() .