Show Table of Contents
14.25. Slapi_Mod
Represents a single LDAP modification to a directory entry.
Syntax
#include "slapi-plugin.h" typedef struct slapi_mod Slapi_Mod;
Description
Slapi_Mod is the data type for an opaque structure that represents LDAPMod modifications to an attribute in a directory entry.
The following table summarizes the front-end API functions that you can call to manipulate directory entries.
| To ... | ... Call this function |
|---|---|
| Add a value to a Slapi_Mod structure. | slapi_mod_add_value() |
| Free internals of Slapi_Mod structure. | slapi_mod_done() |
| Dump the contents of an LDAPMod to the server log. | slapi_mod_dump() |
| Free a Slapi_Mod structure. | slapi_mod_free() |
| Initialize a Slapi_Mod iterator and return the first attribute value. | slapi_mod_get_first_value() |
| Get a reference to the LDAPMod in a Slapi_Mod structure. | slapi_mod_get_ldapmod_byref() |
| Retrieve the LDAPMod contained in a Slapi_Mod structure. | slapi_mod_get_ldapmod_passout() |
| Increment the Slapi_Mod iterator and return the next attribute value. | slapi_mod_get_next_value() |
| Get the number of values in a Slapi_Mod structure. | slapi_mod_get_num_values() |
| Get the operation type of Slapi_Mod structure. | slapi_mod_get_operation() |
| Get the attribute type of a Slapi_Mod structure. | slapi_mod_get_type() |
| Initialize a Slapi_Mod structure. | slapi_mod_init() |
| Initialize a Slapi_Mod structure that is a wrapper for an existing LDAPMod. | slapi_mod_init_byref() |
| Initialize a modification by value. | slapi_mod_init_byval() |
| Initialize a Slapi_Mod from an LDAPMod. | slapi_mod_init_passin() |
| Initializes the given smod with the given LDAP operation and attribute type. | Section 33.17, “slapi_mod_init_valueset_byval()” |
| Determine whether a Slapi_Mod structure is valid. | slapi_mod_isvalid() |
| Allocate a new Slapi_Mod structure. | slapi_mod_new() |
| Remove the value at the current Slapi_Mod iterator position. | slapi_mod_remove_value() |
| Set the operation type of a Slapi_Mod structure. | slapi_mod_set_operation() |
| Set the attribute type of a Slapi_Mod. | slapi_mod_set_type() |
See Also

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.