HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Returns This function returns a pointer to the Slapi_DN structure containing the new DN
value.
See also
“slapi_sdn_set_ndn_byref()”
“slapi_sdn_set_dn_passin()”
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 char *dn);
Parameters This function takes the following parameters:
The target Slapi_DN structure.sdn
DN value to be set in sdn.dn
Returns This function returns a pointer to the Slapi_DN structure containing the new DN
value.
See also
“slapi_sdn_set_dn_byval()”
“slapi_sdn_set_dn_byref()”
39.32 slapi_sdn_set_ndn_byref()
Description This function sets a normalized DN value in a Slapi_DN structure. The normalized
DN of the new structure will point to the same string pointed to by ndn; the normalized DN
value is passed into the parameter by reference. However, the FLAG_DN flag is not set, and no
internal counter is incremented.
Syntax
#include "slapi-plugin.h"
Slapi_DN *slapi_sdn_set_ndn_byref(Slapi_DN *sdn, const char *ndn);
Parameters This function takes the following parameters:
The target Slapi_DN structure.sdn
Normalized DN value to be set in sdn.ndn
Returns This function returns a pointer to the Slapi_DN structure containing the new
normalized DN value.
See also
“slapi_sdn_set_dn_byval()”
“slapi_sdn_set_dn_passin()”
39.33 slapi_sdn_set_ndn_byval()
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.
39.31 slapi_sdn_set_dn_passin() 321