HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
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:
The target Slapi_DN structure.sdn
The 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_ndn_byref()”
“slapi_sdn_set_dn_passin()”
39.34 slapi_sdn_set_parent()
Description This function sets a new parent for a given entry. This is done by keeping the RDN
of the original DN of the entry and by adding the DN of its new parent (the value of parentdn)
to it.
Syntax
#include "slapi-plugin.h"
Slapi_DN *slapi_sdn_set_parent(Slapi_DN *sdn, const Slapi_DN *parentdn);
Parameters This function takes the following parameters:
The Slapi_DN structure containing the DN of the entry.sdn
The new parent DN.
parentdn
Returns The function returns a pointer to the Slapi_DN structure that contains the DN of the
entry after the new parent DN has been set.
See also
slapi_sdn_isparent()
slapi_sdn_get_parent()
39.35 slapi_sdn_set_rdn()
Description This function sets a new RDN for a given entry. This is done by retrieving the DN
of the entry's parent of the origin DN of the entry, then adding it to the RDN (the value of rdn)
to it.
Syntax
#include "slapi-plugin.h"
Slapi_DN *slapi_sdn_set_rdn(Slapi_DN *sdn, const Slapi_RDN *rdn);
Parameters This function takes the following parameters:
The Slapi_DN structure containing the DN of the entry.sdn
The new RDN.
rdn
Returns This function returns a pointer to the Slapi_DN structure that keeps the DN of the
entry after the new RDN has been set.
See also “slapi_sdn_get_rdn()”
322 Functions for managing DNs