HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Description Slapi_Mods is the data type for an opaque structure that represents LDAPMod
manipulations that can be made to a directory entry.
The following table summarizes the front end API functions that you can call to manipulate
directory entries.
Call this function:To:
“slapi_mods2entry()”
Create a Slapi_Entry from an array of LDAPMod.
“slapi_mods_add()”Append a new mod with a single attribute value to
Slapi_Mods structure.
“slapi_mods_add_ldapmod()”
Append an LDAPMod to a Slapi_Mods structure.
“slapi_mods_add_modbvps()”
Append a new mod to a Slapi_Mods structure, with
attribute values provided as an array of berval.
“slapi_mods_add_mod_values()”
Append a new mod to a Slapi_Mods structure, with
attribute values provided as an array of Slapi_Value.
“slapi_mods_add_string()”
Append a new mod to Slapi_Mods structure with a
single attribute value provided as a string.
“slapi_mods_done()”Complete a modification.
“slapi_mods_dump()”
Dump the contents of a Slapi_Mods structure to the
server log.
“slapi_mods_free()”
Free a Slapi_Mods structure.
“slapi_mods_get_first_mod()”
Initialize a Slapi_Mods iterator and return the first
LDAPMod.
“slapi_mods_get_ldapmods_byref()”
Get a reference to the array of LDAPMod in a Slapi_Mods
structure.
“slapi_mods_get_ldapmods_passout()”
Retrieve the array of LDAPMod contained in a
Slapi_Mods structure.
“slapi_mods_get_next_mod()”
Increment the Slapi_Mods iterator and return the next
LDAPMod.
“slapi_mods_get_next_smod()”
Increment the Slapi_Mods iterator and return the next
mod wrapped in a Slapi_Mods.
“slapi_mods_get_num_mods()”
Get the number of mods in a Slapi_Mods structure.
“slapi_mods_init()”
Initialize a Slapi_Mods.
“slapi_mods_init_byref()”
Initialize a Slapi_Mods that is a wrapper for an existing
array of LDAPMod.
“slapi_mods_init_passin()”
Initialize a Slapi_Mods structure from an array of
LDAPMod.
“slapi_mods_insert_after()”
Insert an LDAPMod into a Slapi_Mods structure after the
current iterator position.
“slapi_mods_insert_at()”
Insert an LDAPMod anywhere in a Slapi_Mods.
“slapi_mods_insert_before()”
Insert an LDAPMod into a Slapi_Mods structure before
the current iterator position.
“slapi_mods_iterator_backone()”
Decrement the Slapi_Mods current iterator position.
“slapi_mods_new()”
Allocate a new uninitialized Slapi_Mods structure.
“slapi_mods_remove()”
Remove the mod at the current Slapi_Mods iterator
position.
136 Data type and structure reference