Sun Java System Directory Server Enterprise Edition 6.1 Developer's Guide

slapi_entry2mods()

Creates an array of LDAPMod from a Slapi_Entry.

Syntax

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

Parameters

This function takes the following parameters:

e

Pointer to a Slapi_Entry.

dn

Address of a char* that will be set on return to the entry DN.

attrs

Address of an array of LDAPMod that will be set on return to a copy of the entry attributes.

Returns

This function returns one of the following values:

Description

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.

See Also

slapi_mods2entry()