Sun Directory Server Enterprise Edition 7.0 Developer's Guide

slapi_mods2entry()

Creates a Slapi_Entry from an array of LDAPMod.

Syntax

#include "slapi-plugin.h"
 int slapi_mods2entry(Slapi_Entry **e, const char *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 LDAP_SUCCESS if successful, or an LDAP return code if not successful.

Description

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

See Also

slapi_entry2mods()