HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
37.28 slapi_rdn_set_sdn()
Description This function sets an RDN value in a Slapi_RDN structure. The structure is freed
from memory and freed of any previous content before setting the new RDN. The new RDN is
taken from the DN value present inside of a Slapi_DN structure.
Syntax
#include "slapi-plugin.h"
void slapi_rdn_set_sdn(Slapi_RDN *rdn,const Slapi_DN *sdn);
Parameters This function takes the following parameters:
The target Slapi_RDN structure.rdn
The Slapi_RDN structure containing the DN value whose RDN will be set in rdn.sdn
See also
“slapi_rdn_set_dn()”
“slapi_rdn_set_rdn()”
37.29 slapi_rdn2typeval()
Converts the second RDN type value to the berval value.
Syntax
#include "slapi-plugin.h"
int slapi_rdn2typeval( char *rdn, char **type, struct berval *bv );
Parameters This function takes the following parameters:
Second RDN value
rdn
Pointer to the attribute type of the second RDN.
type
Pointer to the berval value structure.bv
Returns This function returns the new RDN value as a berval value in bv. This function can
be used for creating the RDN as an attribute value because it returns the value of the RDN in the
berval structure.
See also moddn_rdn_add_needed()
306 Functions for managing RDNs