HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
#include "slapi-plugin.h"
int slapi_rdn_remove_index(Slapi_RDN *rdn, int atindex);
Parameters This function takes the following parameters:
The target Slapi_RDN structure.rdn
The index of the RDN type/value pair to remove.
atindex
Returns This function returns one of the following values:
0
If no RDN is removed because either rdn is empty or the index goes beyond the number of
RDNs present.
1
If the RDN is removed from rdn.
See also
“slapi_rdn_remove()”
“slapi_rdn_remove_attr()”
37.26 slapi_rdn_set_dn()
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 in the dn parameter.
Syntax
#include "slapi-plugin.h"
void slapi_rdn_set_dn(Slapi_RDN *rdn,const char *dn);
Parameters This function takes the following parameters:
The target Slapi_RDN structure.rdn
The DN value whose RDN will be set inrdn.dn
See also
“slapi_rdn_set_sdn()”
“slapi_rdn_set_rdn()”
37.27 slapi_rdn_set_rdn()
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.
Syntax
#include "slapi-plugin.h"
void slapi_rdn_set_rdn(Slapi_RDN *rdn,const Slapi_RDN *fromrdn);
Parameters This function takes the following parameters:
The target Slapi_RDN structure.rdn
The RDN value to be set in rdn.fromrdn
See also
“slapi_rdn_set_dn()”
“slapi_rdn_set_sdn()”
37.26 slapi_rdn_set_dn() 305