37.20. slapi_rdn_new_dn()

Description

This function creates a new Slapi_RDN structure and initializes its RDN with the value taken from the DN passed in the dn parameter.

Syntax

#include "slapi-plugin.h"
Slapi_RDN *slapi_rdn_new_dn(const Slapi_DN *dn);

Parameters

This function takes the following parameter:

dn
The DN value whose RDN will be used to initialize the new Slapi_RDN structure.
Returns

This function returns a pointer to the new Slapi_RDN structure initialized with the RDN taken from the DN value in dn.

Memory Concerns

The memory is allocated by the function itself.