39.35. slapi_sdn_set_rdn()

Description

This function sets a new RDN for a given entry. This is done by retrieving the DN of the entry's parent of the origin DN of the entry and then adding it to the RDN (the value of rdn) to it.

Syntax

#include "slapi-plugin.h"
Slapi_DN *slapi_sdn_set_rdn(Slapi_DN *sdn, const Slapi_RDN *rdn);

Parameters

This function takes the following parameters:

sdn
The Slapi_DN structure containing the DN of the entry.
rdn
The new RDN.
Returns

This function returns a pointer to the Slapi_DN structure that keeps the DN of the entry after the new RDN has been set.