37.28. slapi_rdn_set_sdn()

Description

This function sets an RDN value in a Slapi_RDN structure. The structure is freed from memory and freed of any previous content before setting the new RDN. The new RDN is taken from the DN value present inside of a Slapi_DN structure.

Syntax

#include "slapi-plugin.h"
void slapi_rdn_set_sdn(Slapi_RDN *rdn,const Slapi_DN *sdn);

Parameters

This function takes the following parameters:

rdn
The target Slapi_RDN structure.
sdn
The Slapi_RDN structure containing the DN value whose RDN will be set in rdn.