Creates an array of LDAPMod from a Slapi_Entry.
#include "slapi-plugin.h" int slapi_entry2mods(const Slapi_Entry *e, char **dn, LDAPMod ***attrs);
This function takes the following parameters:
Pointer to a Slapi_Entry.
Address of a char* that will be set on return to the entry DN.
Address of an array of LDAPMod that will be set on return to a copy of the entry attributes.
This function returns one of the following values:
0 if successful.
non-0 if not successful.
This function creates an array of LDAPMod of type LDAP_MOD_ADD from a Slapi_Entry. Such structures may be useful for example when performing LDAP add and modify operations as a client from inside a plug-in.