14.31. Slapi_RDN

Represents a relative distinguished name in a directory entry.
Syntax

 

#include "slapi-plugin.h" 
typedef struct slapi_rdn Slapi_RDN;
Description

Slapi_RDN is the data type for an opaque structure that represents a relative distinguished name in the server plug-in.

The following table summarizes the front-end API functions that you can call to work with relative distinguished names.
To ... ... Call this function
Add a new RDN to an existing RDN structure. slapi_rdn_add()
Compare two RDNs. slapi_rdn_compare()
Check if a Slapi_RDN structure holds any RDN matching a given type/value pair. slapi_rdn_contains()
Check if a Slapi_RDN structure contains any RDN matching a given type. slapi_rdn_contains_attr()
Clear a Slapi_RDN structure. slapi_rdn_done()
Free a Slapi_RDN structure. slapi_rdn_free()
Get the type/value pair of the first RDN. slapi_rdn_get_first()
Get the index of the RDN. slapi_rdn_get_index()
Get the position and the attribute value of the first RDN.  
Get the RDN type/value pair from the RDN. slapi_rdn_get_next()
Get the number of RDN type/value pairs. slapi_seq_internal_set_pb()
Get the RDN from a Slapi_RDN structure. slapi_seq_internal_set_pb()
Initialize a Slapi_RDN structure. slapi_rdn_init()
Initialize a Slapi_RDN structure with an RDN value taken from a given DN. slapi_rdn_init_dn()
Initializes Slapi_RDN structure with an RDN value. slapi_rdn_init_rdn()
Initialize a Slapi_RDN structure with an RDN value taken from the DN contained in a given Slapi_RDN.  
Check if an RDN value is stored in a Slapi_RDN structure. slapi_rdn_isempty()
Allocate a new Slapi_RDN structure. slapi_rdn_new()
Create a new Slapi_RDN structure. slapi_rdn_new_dn()
Create a new Slapi_RDN structure and set an RDN value. slapi_rdn_new_rdn()
Create a new Slapi_RDN structure and set an RDN value taken from the DN contained in a given Slapi_RDN structure. slapi_rdn_new_sdn()
Remove an RDN type/value pair. slapi_rdn_remove()
Remove an RDN type/value pair from a Slapi_RDN. slapi_rdn_remove_attr()
Remove an RDN type/value pair from a Slapi_RDN structure. slapi_rdn_remove_index()
Set an RDN value in a Slapi_RDN structure. slapi_rdn_set_dn()
Set an RDN in a Slapi_RDN structure. slapi_rdn_set_rdn()
Set an RDN value in a Slapi_RDN structure. slapi_rdn_set_sdn()
Add an RDN to a DN.