HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Repository that will hold the type (cn, o, ou, etc.) of the next (index+1) RDN. If this
parameter is NULL at the return of the function, the RDN does not exist.
type
Repository that will hold the value of the next (index+1) RDN. If this parameter is NULL,
the RDN does not exist.
value
Returns This function returns one of the following values:
The real position of the retrieved RDN if the operation was successful.
-1 if there is no RDN in the index position.
See also
“slapi_rdn_get_first()”
“slapi_rdn_get_rdn()”
37.11 slapi_rdn_get_num_components()
Gets the number of RDN type/value pairs present in a Slapi_RDN structure.
Syntax
#include "slapi-plugin.h"
int slapi_rdn_get_num_components(Slapi_RDN *rdn);
Parameters This function takes the following parameter:
The target Slapi_RDN structure.rdn
Returns This function returns the number of RDN type/value pairs present in rdn.
See also “slapi_rdn_add()”
37.12 slapi_rdn_get_rdn()
Gets the RDN from a Slapi_RDN structure.
Syntax
#include "slapi-plugin.h"
const char *slapi_rdn_get_rdn(const Slapi_RDN *rdn);
Parameters This function takes the following parameter:
The Slapi_RDN structure holding the RDN value.rdn
Returns This function returns the RDN value.
37.13 slapi_rdn_get_nrdn()
Not implemented; do not use.
Gets the new normalized RDN from a Slapi_RDN structure.
Syntax
#include "slapi-plugin.h"
const char *slapi_rdn_get_nrdn(const Slapi_RDN *rdn);
Parameters This function takes the following parameter:
The Slapi_RDN structure holding the RDN value.rdn
Returns This function returns the new RDN value.
300 Functions for managing RDNs