14.12. Slapi_Attr

Represents an attribute in an entry.
Syntax

 

#include "slapi-plugin.h" 
typedef struct slapi_attr Slapi_Attr;
Description

Slapi_Attr is the data type for an opaque structure that represents an attribute in a directory entry. In certain cases, your server plug-in may need to work with an entry's attributes. The following table summarizes the front-end API functions that you can call to work with attributes.

To ... ... Call this function
Add an attribute value. slapi_attr_add_value()
Return the base type of an attribute. slapi_attr_basetype()
Duplicate an attribute. slapi_attr_dup()
Get the first value of an attribute. slapi_attr_first_value()
Determine if certain flags are set. slapi_attr_flag_is_set()
Free an attribute. slapi_attr_free()
Put the values contained in an attribute into an array of berval structures. slapi_attr_get_bervals_copy()
Get the flags associated with an attribute. slapi_attr_get_flags()
Put the count of values of an attribute into an integer. slapi_attr_get_numvalues()
Search for an attribute type and give its OID string. slapi_attr_get_oid_copy()
Get the type of an attribute. slapi_attr_get_type()
Get the next value of an attribute. slapi_attr_get_valueset()
Determine the next value of an attribute. slapi_attr_next_value()
Initialize a valueset in a Slapi_Attr structure from a specified Slapi_ValueSet structure. slapi_attr_set_valueset()
Get information about the plug-in responsible for handling an attribute type. slapi_attr_type2plugin()
Compare two attribute names to determine if they represent the same attribute. slapi_attr_types_equivalent()
Find the first attribute in an entry. slapi_entry_first_attr()
Iterate through the attributes in an entry. slapi_entry_next_attr()
Determine if an attribute contains a given value. slapi_entry_attr_find()
Determine if an attribute has the specified value. slapi_attr_value_find()
Compare two attribute values. slapi_attr_value_cmp()
Add the changes in a modification to a valueset. slapi_valueset_set_from_smod()
Initialize a Slapi_ValueSet structure from another Slapi_ValueSet structure. slapi_valueset_set_valueset()