HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Parameters This function takes the following parameters:
Entry to which you want to add values.
e
Attribute type to which you want to add values.
type
Slapi_ValueSet data value that you want to add to the entry.vs
Returns This function returns 0 when successful; any other value returned signals failure.
Memory concerns This routine makes a copy of the parameter vs. vs can be NULL.
24.8 slapi_entry_alloc()
Allocates memory for a new entry of the “Slapi_Entry” data type.
Description This function returns an empty Slapi_Entry structure. You can call other front
end functions to set the DN and attributes of this entry.
Syntax
#include "slapi-plugin.h"
Slapi_Entry *slapi_entry_alloc();
Returns This function returns a pointer to the newly allocated entry of the data type
Slapi_Entry. If space cannot be allocated, e.g., no more virtual memory exists, the slapd
program terminates.
When you are no longer using the entry, you should free it from memory by calling the
“slapi_entry_free()” function.
Memory concerns When you no longer use the entry, free it from memory by calling the
“slapi_entry_free()” function.
See also
“slapi_entry_dup()”
“slapi_entry_free()”
24.9 slapi_entry_apply_mods()
Applies an array of LDAPMod to a new entry of the “Slapi_Entry” data type.
Syntax
#include "slapi-plugin.h"
int slapi_entry_apply_mods(Slapi_Entry *e, LDAPMod **mods);
Parameters This function takes the following parameters:
Entry to which to apply the modifications.
e
Pointer to an initialized Slapi_Mods.mods
Returns If the modifications are applied cleanly to the entry, then the function returns an
LDAP_SUCCESS message (0).
If an error occurs, then the function returns the appropriate LDAP error message.
See also
Chapter 33 “Functions for LDAPMod manipulation”
24.10 slapi_entry_attr_delete()
Deletes an attribute (and all its associated values) from an entry.
Syntax
216 Functions for managing entries