HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
39 Functions for managing DNs
This chapter contains reference information on DN routines.
Table 39-1 DN routines
DescriptionFunction
Determines if the DN is the root DN for the local database.“slapi_dn_isroot()”
Converts a DN to canonical format and all characters to lower case.“slapi_dn_normalize_case()”
Normalizes part of a DN value.“slapi_dn_normalize_to_end()”
Builds the new DN of an entry.“slapi_moddn_get_newdn()”
Adds the RDN contained in a Slapi_RDN structure to the DN contained in
a Slapi_DN structure.
slapi_sdn_add_rdn()
Compares two DNs.slapi_sdn_compare()
Copies a DN.“slapi_sdn_copy()”
Clears a Slapi_DN structure.
“slapi_sdn_done()”
Duplicates a Slapi_DN structure.
“slapi_sdn_dup()”
Frees a Slapi_DN structure.
“slapi_sdn_free()”
Gets the DN of the parent within a specific back end.slapi_sdn_get_backend_parent()
Gets the DN from a Slapi_DN structure.
“slapi_sdn_get_dn()”
Gets the normalized DN of a Slapi_DN structure.
slapi_sdn_get_ndn()
Gets the length of the normalized DN of a Slapi_DN structure.
“slapi_sdn_get_ndn_len()”
Get the parent DN of a given Slapi_DN structure.
slapi_sdn_get_parent()
Gets the RDN from an NDN.“slapi_sdn_get_rdn()”
Not implemented; do not use. Checks if there is a RDN value that is
a component of the DN structure.
“slapi_sdn_is_rdn_component()”
Checks if there is a DN value stored in a Slapi_DN structure.
“slapi_sdn_isempty()”
Checks if a DN is the parent of the parent of a DN.“slapi_sdn_isgrandparent()”
Checks if a DN is the parent of a DN.slapi_sdn_isparent()
Checks if a Slapi_DN structure contains a suffix of another.
slapi_sdn_issuffix()
Allocates new Slapi_DN structure.
“slapi_sdn_new()”
Creates a new Slapi_DN structure.
“slapi_sdn_new_dn_byref()”
Creates a new Slapi_DN structure.
“slapi_sdn_new_dn_byval()”
Creates a new Slapi_DN structure.
“slapi_sdn_new_dn_passin()”
Creates a new Slapi_DN structure.
“slapi_sdn_new_ndn_byref()”
Creates a new Slapi_DN structure.
“slapi_sdn_new_ndn_byval()”
Checks if an entry is in the scope of a certain base DN.“slapi_sdn_scope_test()”
Sets a DN value in a Slapi_DN structure.
“slapi_sdn_set_dn_byref()”
Sets a DN value in a Slapi_DN structure.
“slapi_sdn_set_dn_byval()”
Sets a DN value in a Slapi_DN structure.
“slapi_sdn_set_dn_passin()”
309