Sets a new RDN for given entry.
#include "slapi-plugin.h" Slapi_DN *slapi_sdn_set_rdn(Slapi_DN *sdn, const Slapi_RDN *rdn);
This function takes the following parameters:
The Slapi_DN structure containing the DN of the entry.
The new RDN.
This function returns a pointer to the Slapi_DN structure that keeps the DN of the entry after the new RDN has been set.
This function sets a new RDN for an 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.