Sun Directory Server Enterprise Edition 7.0 Developer's Guide

slapi_sdn_set_dn_byref()

Sets a DN value in a Slapi_DN structure.

Syntax

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

Parameters

This function takes the following parameters:

sdn

The target Slapi_DN structure.

dn

The DN value to be set in sdn.

Returns

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

Description

This function sets a DN value in a Slapi_DN structure. The DN of the new structure will point to the same string pointed to by dn (the DN value is passed into the parameter by value). However, the FLAG_DN flag is not set, and no internal counter is incremented.

See Also

slapi_sdn_set_dn_byval()

slapi_sdn_set_dn_passin()