14.26. Slapi_Mods

Represents two or more LDAP modifications to a directory entry
Syntax

 

#include "slapi-plugin.h" 
typedef struct slapi_mods Slapi_Mods;
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.
To ... ... Call this function
Create a Slapi_Entry from an array of LDAPMod. slapi_mods2entry()
Append a new mod with a single attribute value to Slapi_Mods structure. slapi_mods_add()
Append an LDAPMod to a Slapi_Mods structure. slapi_mods_add_ldapmod()
Append a new mod to a Slapi_Mods structure, with attribute values provided as an array of berval. slapi_mods_add_modbvps()
Append a new mod to a Slapi_Mods structure, with attribute values provided as an array of Slapi_Value. slapi_mods_add_mod_values()
Append a new mod to Slapi_Mods structure with a single attribute value provided as a string. slapi_mods_add_string()
Complete a modification. slapi_mods_done()
Dump the contents of a Slapi_Mods structure to the server log. slapi_mods_dump()
Free a Slapi_Mods structure. slapi_mods_free()
Initialize a Slapi_Mods iterator and return the first LDAPMod. slapi_mods_get_first_mod()
Get a reference to the array of LDAPMod in a Slapi_Mods structure. slapi_mods_get_ldapmods_byref()
Retrieve the array of LDAPMod contained in a Slapi_Mods structure. slapi_mods_get_ldapmods_passout()
Increment the Slapi_Mods iterator and return the next LDAPMod. slapi_mods_get_next_mod()
Increment the Slapi_Mods iterator and return the next mod wrapped in a Slapi_Mods. slapi_mods_get_next_smod()
Get the number of mods in a Slapi_Mods structure. slapi_mods_get_num_mods()
Initialize a Slapi_Mods. slapi_mods_init()
Initialize a Slapi_Mods that is a wrapper for an existing array of LDAPMod. slapi_mods_init_byref()
Initialize a Slapi_Mods structure from an array of LDAPMod. slapi_mods_init_passin()
Insert an LDAPMod into a Slapi_Mods structure after the current iterator position. slapi_mods_insert_after()
Insert an LDAPMod anywhere in a Slapi_Mods. slapi_mods_insert_at()
Insert an LDAPMod into a Slapi_Mods structure before the current iterator position. slapi_mods_insert_before()
Decrement the Slapi_Mods current iterator position. slapi_mods_iterator_backone()
Allocate a new uninitialized Slapi_Mods structure. slapi_mods_new()
Remove the mod at the current Slapi_Mods iterator position. slapi_mods_remove()
See Also

LDAPMod and Slapi_Mod