Sun Directory Server Enterprise Edition 7.0 Developer's Guide

slapi_sdn_set_ndn_byval()

Sets a normalized DN value in Slapi_DN structure.

Syntax

#include "slapi-plugin.h"
 Slapi_DN *slapi_sdn_set_ndn_byval(Slapi_DN *sdn, const char *ndn);

Parameters

This function takes the following parameters:

sdn

The target Slapi_DN structure.

dn

The normalized DN value to be set in sdn.

Returns

This function returns a pointer to the Slapi_DN structure containing the new normalized DN value.

Description

This function sets a normalized DN value in a Slapi_DN structure. The normalized DN of the new structure will point to a copy of the string pointed to by ndn (the normalized DN value is passed into the parameter by value). The FLAG_DN flag is set, and the internal counters are incremented.

See Also

slapi_log_info_ex()

slapi_sdn_set_dn_passin()