HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Table 14-13 Functions for Slapi_Counter (continued)
Call this function:To:
slapi_counter_add()Add a certain amount to the counter value.
slapi_counter_subtract()Subtract a certain amount from the counter value.
slapi_counter_set_value()Set the counter to a new, specified value and returns the
updated value.
slapi_counter_get_value()Get the current value of the counter.
slapi_counter_destroy()Destroy an existing counter.
14.21 Slapi_DN
Represents a distinguished name in a directory entry.
Syntax
#include "slapi-plugin.h"
typedef struct slapi_dn Slapi_DN;
Description Slapi_DN is the data type for an opaque structure that represents a distinguished
name in the server plug-in. The following table summarizes the front end API functions that you
can call to work with distinguished names.
Call this function:To:
“slapi_add_auth_response_control()”Supply authentication information from an LDAP bind
operation.
“slapi_dn_isroot()”Specify a distinguished name is a root.
“slapi_dn_normalize_case()”Convert a DN to canonical format and all characters to
lower case
“slapi_dn_normalize_to_end()”Normalize part of a DN value
“slapi_moddn_get_newdn()”Build the new DN of an entry.
slapi_sdn_add_rdn()
Add the RDN contained in a Slapi_RDN structure to the
DN contained in a Slapi_DN structure.
slapi_sdn_compare()Compare two DNs.
“slapi_sdn_copy()”Copy a DN.
“slapi_sdn_done()”
Clear a Slapi_DN structure.
“slapi_sdn_dup()”
Duplicate a Slapi_DN structure.
“slapi_sdn_free()”
Free a Slapi_DN structure.
slapi_sdn_get_backend_parent()Get the DN of the parent within a specific back end.
“slapi_sdn_get_dn()”
Get the DN from a Slapi_DN structure.
slapi_sdn_get_ndn()
Get the normalized DN of a Slapi_DN structure.
“slapi_sdn_get_ndn_len()”
Get the length of the normalized DN of a Slapi_DN
structure.
slapi_sdn_get_parent()
Get the parent DN of a given Slapi_DN structure.
“slapi_sdn_get_rdn()”Get the RDN from a normalized DN.
“slapi_sdn_is_rdn_component()”Not implemented; do not use. Check if there is a RDN value
that is a component of the DN structure.
130 Data type and structure reference