Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual page 338

Table of Contents

Advertisement

Functions for Managing Entries
Description
This function adds additional
contained in an attribute. If the attribute type does not exist, it is created.
If the specified attribute exists in the entry, the function merges the value specified
and returns
creates it with the
Note that if this function fails, it leaves the values for
an indeterminate state. The present value set may be truncated.
rc = delete_values_sv_internal( e,
Memory Concerns
This function makes a copy of
slapi_entry_next_attr()
Finds the next attribute after
in an entry, use this function in conjunction with the
function.
Syntax
#include "slapi-plugin.h"
int slapi_entry_next_attr( Slapi_Entry *e,
Slapi_Attr *prevattr, Slapi_Attr **attr );
Parameters
This function takes the following parameters:
e
prevattr
attr
Returns
This function returns one of the following values:
0
-1
338
Netscape Directory Server Plug-In Programmer's Guide • August 2002
LDAP_SUCCESS
Slapi_Value
type, vals, 1 /* Ignore Errors */ );
Entry from which you want to get the attribute.
Previous attribute in the entry.
Pointer to the next attribute after prevattr in the entry.
if successful.
if
was the last attribute in the entry.
prevattr
data values to the existing values
Slapi_Value
. If the attribute is not found in the entry, the function
specified and returns
.
can be
vals
vals
in an entry. To iterate through the attributes
prevattr
LDAP_NO_SUCH_ATTRIBUTE
within a pointer to
type
.
NULL
slapi_entry_first_attr()
.
in
e

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents