HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
#include "slapi-plugin.h"
void slapi_entry_attr_set_ulong(Slapi_Entry* e, const char *type,
unsigned long l);
Parameters This function takes the following parameters:
Entry in which you want to set the value.
e
Attribute type in which you want to set the value.
type
Unsigned long value that you want assigned to the attribute.
l
24.27 slapi_entry_delete_string()
Deletes a string value from an attribute in an entry.
Syntax
#include "slapi-plugin.h"
int slapi_entry_delete_string(Slapi_Entry *e, const char *type,
const char *value);
Parameters This function takes the following parameters:
Entry from which you want the string deleted.
e
Attribute type from which you want the string deleted.
type
Value of string to delete.
value
Returns This function returns 0 when successful; any other value returned signals failure.
24.28 slapi_entry_delete_values_sv()
Removes an array of Slapi_Value data values from an attribute in an entry.
Description This function removes an attribute/valueset from an entry. Both the attribute and
its Slapi_Value data values are removed from the entry. If you supply a Slapi_Value whose
value is NULL, the function will delete the specified attribute from the entry. In either case, the
function returns LDAP_SUCCESS.
This function replaces the deprecated slapi_entry_delete_values() function. This function
uses Slapi_Value attribute values instead of the now obsolete berval attribute values.
Syntax
#include "slapi-plugin.h"
int slapi_entry_delete_values_sv( Slapi_Entry *e, const char *type,
Slapi_Value **vals );
Parameters This function takes the following parameters:
Entry from which you want to delete values.
e
Attribute from which you want to delete values.
type
Array of Slapi_Value data values that you want to delete.vals
Returns This function returns LDAP_SUCCESS if the specified attribute and the array of
Slapi_Value data values are deleted from the entry.
If the specified attribute contains a NULL value, the attribute is deleted from the attribute list,
and the function returns LDAP_NO_SUCH_ATTRIBUTE. As well, if the attribute is not found in
the list of attributes for the specified entry, the function returns LDAP_NO_SUCH_ATTRIBUTE.
24.27 slapi_entry_delete_string() 223