33.23. slapi_mods2entry()

Description

This function creates a Slapi_Entry from a copy of an array of LDAPMod of type LDAP_MODD_ADD.

Syntax

#include "slapi-plugin.h"
int slapi_mods2entry(Slapi_Entry **e, const Slapi_DN *dn, LDAPMod **attrs);

Parameters

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.
Returns

This function returns one of the following values:

  • LDAP_SUCCESS if successful.
  • An LDAP return code if not successful.