Sets a new parent for a given entry.
#include "slapi-plugin.h" Slapi_DN *slapi_sdn_set_parent(Slapi_DN *sdn, const Slapi_DN *parentdn);
This function takes the following parameters:
The Slapi_DN structure containing the DN of the entry.
The new parent DN.
The function returns a pointer to the Slapi_DN structure that contains the DN of the entry after the new parent DN has been set.
This function sets a new parent for an entry. This is done by keeping the RDN of the original DN of the entry and by adding the DN of its new parent (the value of parentdn).