Sun Java System Directory Server Enterprise Edition 6.0 Developer's Guide

slapi_sdn_set_parent()

Sets a new parent for a given entry.

Syntax

#include "slapi-plugin.h"
 Slapi_DN *slapi_sdn_set_parent(Slapi_DN *sdn,
    const Slapi_DN *parentdn);

Parameters

This function takes the following parameters:

sdn

The Slapi_DN structure containing the DN of the entry.

parentdn

The new parent DN.

Returns

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.

Description

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).

See Also

slapi_sdn_get_parent()

slapi_sdn_isparent()