Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual page 313

Table of Contents

Advertisement

LDAP_SUCCESS
also returns
the entry's RDN is
LDAP_INVALID_DN_SYNTAX
Memory Concerns
Free the entry from memory by using the
was allocated by the user.
See Also
slapi_entry_free()
slapi_entry_add_string()
Adds a string value to an attribute in an entry.
Syntax
#include "slapi-plugin.h"
int slapi_entry_add_string (Slapi_Entry *e, const char *type,
const char *value);
Parameters
This function takes the following parameters:
e
type
value
Returns
This function returns
Description
This function adds a string value to the existing attribute values in an entry. If the
specified attribute does not exist in the entry, the attribute is created with the string
value specified. (The function doesn't check for duplicate values, that is, it does not
check if the string value being added is already there.)
if the values were successfully added to the entry. The function
if the entry is
LDAP_SUCCESS
.
NULL
if the DN of the entry cannot be parsed.
Entry to which you want to add a string value.
Attribute to which you want to add a string value.
String value you want to add.
when successful; any other value returned signals failure.
0
Functions for Managing Entries
, if the entry's DN is
NULL
function, if the entry
slapi_ch_free()
Chapter 15
, or if
NULL
Function Reference
313

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents