39.34. slapi_sdn_set_parent()
This function sets a new parent for a given 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) to it.
#include "slapi-plugin.h" Slapi_DN *slapi_sdn_set_parent(Slapi_DN *sdn, const Slapi_DN *parentdn);
This function takes the following parameters:
|
sdn
| The Slapi_DN structure containing the DN of the entry. |
|
parentdn
| 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.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.