Appends a new mod with a single attribute value to Slapi_Mods structure.
#include "slapi-plugin.h" void slapi_mods_add( Slapi_Mods *smods, int modtype, const char *type, unsigned long len, const char *val);
This function takes the following parameters:
Pointer to an initialized Slapi_Mods.
One of LDAP_MOD_ADD, LDAP_MOD_DELETE, LDAP_MOD_REPLACE.
The LDAP attribute type.
The length in bytes of the attribute value.
The attribute value.
This function appends a new mod with a single attribute value to a Slapi_Mods. The mod is constructed from copies of the values of modtype, type, len, and val.
This function must not be used on Slapi_Mods initialized with slapi_mods_init_byref().