33.23. slapi_mods2entry()
This function creates a Slapi_Entry from a copy of an array of LDAPMod of type LDAP_MODD_ADD.
#include "slapi-plugin.h" int slapi_mods2entry(Slapi_Entry **e, const Slapi_DN *dn, LDAPMod **attrs);
This function takes the following parameters:
|
e
| Address of a pointer that will be set on return to the created entry. |
|
dn
| The LDAP DN of the entry. |
|
attrs
| An array of LDAPMod of type LDAP_MOD_ADD representing the entry attributes. |
This function returns one of the following values:
LDAP_SUCCESSif successful.- An LDAP return code if not successful.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.