HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
37 Functions for managing RDNs
This chapter contains reference information on RDN routines.
Table 37-1 RDN routines
DescriptionFunction
Adds a new RDN to an existing RDN structure.“slapi_rdn_add()”
Compares two RDNs.“slapi_rdn_compare()”
Checks if a Slapi_RDN structure holds any RDN matching a give type/value
pair.
“slapi_rdn_contains()”
Checks if a Slapi_RDN structure contains any RDN matching a given type.
“slapi_rdn_contains_attr()”
Clears a Slapi_RDN structure.
“slapi_rdn_done()”
Frees a Slapi_RDN structure.
“slapi_rdn_free()”
Gets the type/value pair of the first RDN.“slapi_rdn_get_first()”
Gets the index of the RDN.“slapi_rdn_get_index()”
Gets the position and the attribute value of the first RDN.“slapi_rdn_get_index_attr()”
Gets the RDN type/value pair from the RDN.“slapi_rdn_get_next()”
Gets the number of RDN type/value pairs.“slapi_rdn_get_num_components()”
Gets the RDN from a Slapi_RDN structure.
“slapi_rdn_get_rdn()”
Not implemented; do not use. Gets the normalized RDN from a Slapi_RDN
structure.
“slapi_rdn_get_nrdn()”
Initializes a Slapi_RDN structure.
“slapi_rdn_init()”
Initializes a Slapi_RDN structure with an RDN value taken from a given
DN.
“slapi_rdn_init_dn()”
Initializes a Slapi_RDN structure with an RDN value.
“slapi_rdn_init_rdn()”
Initializes a Slapi_RDN structure with an RDN value taken from the DN
contained in a given Slapi_RDN structure.
“slapi_rdn_init_sdn()”
Checks if an RDN value is stored in a Slapi_RDN structure.
“slapi_rdn_isempty()”
Allocates a new Slapi_RDN structure.
“slapi_rdn_new()”
Creates a new Slapi_RDN structure.
“slapi_rdn_new_dn()”
Creates a new Slapi_RDN structure and sets an RDN value.
“slapi_rdn_new_rdn()”
Creates a new Slapi_RDN structure and sets an RDN value taken from the
DN contained in a given Slapi_RDN structure.
“slapi_rdn_new_sdn()”
Removes an RDN type/value pair.“slapi_rdn_remove()”
Removes an RDN type/value pair from a Slapi_RDN structure.
“slapi_rdn_remove_attr()”
Removes an RDN type/value pair from a Slapi_RDN structure.
“slapi_rdn_remove_index()”
Sets an RDN value in a Slapi_RDN structure.
“slapi_rdn_set_dn()”
Sets an RDN in a Slapi_RDN structure.
“slapi_rdn_set_rdn()”
Sets an RDN value in a Slapi_RDN structure.
“slapi_rdn_set_sdn()”
Adds an RDN to a DN.slapi_sdn_add_rdn()
Converts the second RDN type value to the berval value.
“slapi_rdn2typeval()”
295