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:

pb A parameter block that has been initialized using slapi_rename_internal_set_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.