24.6. slapi_entry_add_values_sv()
This function adds an array of Slapi_Value data values to an attribute. If the attribute does not exist, it is created and given the value contained in the Slapi_Value array.
slapi_entry_add_values() function. This function uses Slapi_Value attribute values instead of the now obsolete berval attribute values.
#include "slapi-plugin.h" int slapi_entry_add_values_sv( Slapi_Entry *e, const char *type, Slapi_Value **vals );
This function takes the following parameters:
|
e
| Entry to which you want to add values. |
|
type
| Attribute type to which you want to add values. |
|
vals
| Array of Slapi_Value data values that you want to add. |
This function returns one of the following values:
LDAP_SUCCESSif the Slapi_Value array is successfully added to the attribute.LDAP_TYPE_OR_VALUE_EXISTSif any values you are trying to add duplicate an existing value in the attribute.LDAP_OPERATIONS_ERRORif there are pre-existing duplicate values in the attribute.
This routine makes a copy of the parameter vals. vals can be NULL.

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.