Sun Directory Server Enterprise Edition 7.0 Developer's Guide

slapi_rdn_new_dn()

Creates a new Slapi_RDN structure and sets an RDN value taken from a given DN.

Syntax

#include "slapi-plugin.h"
 Slapi_RDN *slapi_rdn_new_dn(const char *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 TDN taken from the DN value in 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.

Memory Concerns

The memory is allocated by the function itself.

See Also

slapi_rdn_new_rdn()

slapi_rdn_new_sdn()