39.31. slapi_sdn_set_dn_passin()

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 FLAG_DN flag is set, and the internal counters are incremented.

Syntax

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

Parameters

This function takes the following parameters:

sdn
The target Slapi_DN structure.
dn
DN value to be set in sdn.
Returns

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