HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Call this function:To:
“slapi_sdn_isempty()”
Check if there is a DN value stored in a Slapi_DN
structure.
“slapi_sdn_isgrandparent()”Check if a DN is the parent of the parent of a DN.
slapi_sdn_isparent()Check if a DN is the parent of a DN.
slapi_sdn_issuffix()
Check if a Slapi_DN structure contains a suffix of another.
“slapi_sdn_new()”
Allocate new Slapi_DN structure.
“slapi_sdn_new_dn_byref()”
Create a new Slapi_DN structure.
“slapi_sdn_new_dn_byval()”
Create a new Slapi_DN structure.
“slapi_sdn_new_dn_passin()”
Create a new Slapi_DN structure.
“slapi_sdn_new_ndn_byref()”
Create a new Slapi_DN structure.
“slapi_sdn_new_ndn_byval()”
Create a new Slapi_DN structure.
“slapi_sdn_scope_test()”Check if an entry is in the scope of a certain base DN.
“slapi_sdn_set_dn_byref()”
Set a DN value in a Slapi_DN structure.
“slapi_sdn_set_dn_byval()”
Set a DN value in a Slapi_DN structure.
“slapi_sdn_set_dn_passin()”
Set a DN value in a Slapi_DN structure.
“slapi_sdn_set_ndn_byref()”
Set a normalized DN in a Slapi_DN structure.
“slapi_sdn_set_ndn_byval()”
Set a normalized DN in a Slapi_DN structure.
“slapi_sdn_set_parent()”Set a new parent in an entry.
“slapi_sdn_set_rdn()”Set a new RDN for an entry.
“slapi_rdn2typeval()”
Convert the second RDN type value to the berval value.
See also Slapi_PBlock
14.22 Slapi_Entry
Represents an entry in the directory.
Syntax
#include "slapi-plugin.h"
typedef struct slapi_entry Slapi_Entry;
Description Slapi_Entry is the data type for an opaque structure that represents an entry in
the directory. In certain cases, your server plug-in may need to work with an entry in the directory.
The following table summarizes the front end API functions that you can call to work with entries.
Call this function:To:
“slapi_entry2str()”Generate an LDIF string description.
“slapi_entry2str_with_options()”Generate an LDIF string descriptions with options.
“slapi_entry_add_rdn_values()”Add components in an entry's RDN.
“slapi_entry_add_string()”Add a string value to an attribute in an entry.
“slapi_entry_add_value()”Add a data value to an attribute in an entry.
slapi_entry_add_values_sv()Add an array of data values to an attribute in an entry.
“slapi_entry_add_valueset()”Add a data value to an attribute in an entry.
14.22 Slapi_Entry 131