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

slapi_sdn_set_rdn()

Sets a new RDN for given entry.

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.

Description

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.

See Also

slapi_sdn_get_rdn()