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

slapi_rdn_new_rdn()

Creates a new Slapi_RDN structure and sets an RDN value.

Syntax

#include "slapi-plugin.h"
 Slapi_RDN * slapi_rdn_new_rdn(const Slapi_RDN *fromrdn);

Parameters

This function takes the following parameters:

fromrdn

The RDN value to be set in the new Slapi_RDN structure.

Returns

This function returns a pointer to the new Slapi_RDN structure with an RDN set to the content of fromrdn.

Description

This function creates a new Slapi_RDN structure and initializes its RDN with the value of fromrdn.

Memory Concerns

The memory is allocated by the function itself.

See Also

slapi_rdn_new_dn()

slapi_rdn_new_sdn()