24.9. slapi_entry_apply_mods()

Applies an array of LDAPMod to a new entry of the Section 14.22, “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:

e Entry to which to apply the modifications.
mods Pointer to an initialized Slapi_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.