14.22. Slapi_Entry
#include "slapi-plugin.h" typedef struct slapi_entry Slapi_Entry;
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.
| To ... | ... Call this function |
|---|---|
| Generate an LDIF string description. | slapi_entry2str() |
| Generate an LDIF string descriptions with options. | slapi_entry2str_with_options() |
| Add components in an entry's RDN. | slapi_entry_add_rdn_values() |
| Add a string value to an attribute in an entry. | slapi_entry_add_string() |
| Add a data value to an attribute in an entry. | slapi_entry_add_value() |
| Add an array of data values to an attribute in an entry. | slapi_entry_add_values_sv() |
| Add a data value to an attribute in an entry. | slapi_entry_add_valueset() |
| Allocate memory for an entry structure. | slapi_entry_alloc() |
Applies an array of LDAPMod to a Slapi_Entry. | Section 24.9, “slapi_entry_apply_mods()” |
| Delete an attribute from an entry. | slapi_entry_attr_delete() |
| Check if an entry contains a specific attribute. | slapi_entry_attr_find() |
| Get the first value as a string. | slapi_entry_attr_get_charptr() |
| Get the values of a multi-valued attribute of an entry. | slapi_entry_attr_get_charray() |
| Get the first value as an integer. | slapi_entry_attr_get_int() |
| Get the first value as a long. | slapi_entry_attr_get_long() |
| Get the first value as an unsigned integer. | slapi_entry_attr_get_uint() |
| Get the first value as an unsigned long. | slapi_entry_attr_get_ulong() |
| Check if an attribute in an entry contains a value. | slapi_entry_attr_has_syntax_value() |
| Add an array to the attribute values in an entry. | slapi_entry_attr_merge_sv() |
| Replace the values of an attribute with a string. | slapi_entry_attr_replace_sv() |
| Set the first value as a string. | slapi_entry_attr_set_charptr() |
| Set the first value as an integer. | slapi_entry_attr_set_int() |
| Set the first value as a long. | slapi_entry_attr_set_long() |
| Set the first value as an unsigned integer. | slapi_entry_attr_set_uint() |
| Set the first value as an unsigned long. | slapi_entry_attr_set_ulong() |
| Delete a string from an attribute. | slapi_entry_delete_string() |
| Remove a Slapi_Value array from an attribute. | slapi_entry_delete_values_sv() |
| Copy an entry, its DN, and its attributes. | slapi_entry_dup() |
| Find the first attribute in an entry. | slapi_entry_first_attr() |
| Free an entry from memory. | slapi_entry_free() |
| Get the DN from an entry. | slapi_entry_get_dn() |
| Return the DN of an entry as a constant. | slapi_entry_get_dn_const() |
| Return the normalized distinguished name (NDN) of an entry. | slapi_entry_get_ndn() |
| Return the Slapi_DN from an entry. | slapi_entry_get_sdn() |
| Return a Slapi_DN from an entry as a constant. | slapi_entry_get_sdn_const() |
| Get the unique ID from an entry. | slapi_entry_get_uniqueid() |
| Determine if the specified entry has child entries. | slapi_entry_has_children() |
| Initialize the values of an entry. | slapi_entry_init() |
| Add an array of data values to an attribute in an entry. | slapi_entry_merge_values_sv() |
| Find the next attribute in an entry. | slapi_entry_next_attr() |
| Check if values present in an entry's RDN are also present as attribute values. | slapi_entry_rdn_values_present() |
| Determine if an entry complies with the schema for its object class. | slapi_entry_schema_check() |
| Set the DN of an entry. | slapi_entry_set_dn() |
| Set the Slapi_DN value in an entry. | slapi_entry_set_sdn() |
| Set the unique ID in an entry. | slapi_entry_set_uniqueid() |
| Return the size of an entry. | slapi_entry_size() |
| Determine if an entry is the root DSE. | slapi_is_rootdse() |
| Convert an LDIF description into an entry. | slapi_str2entry() |

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.