Red Hat DIRECTORY SERVER 7.1 - PLUG-IN PROGRAMMERS Manual page 187

Table of Contents

Advertisement

The operation to be performed on the attribute and the type of data
mod_op
specified as the attribute values. This field can have one of the
following values:
#define LDAP_MOD_ADD
#define LDAP_MOD_DELETE
#define LDAP_MOD_REPLACE
#define LDAP_MOD_BVALUES
• LDAP_MOD_ADD specifies that you want to add the attribute
• LDAP_MOD_DELETE specifies that you want to remove the
• LDAP_MOD_REPLACE specifies that you want to replace the
In addition, if you are specifying binary values (as opposed to
strings), you should OR (|) LDAP_MOD_BVALUES with the
operation type. For example:
Pointer to the attribute type that you want to add, delete, or replace.
mod_type
A NULL-terminated array of string values for the attribute.
mod_values_u
Pointer to a NULL terminated array of string values for the
modv_strvals
attribute.
Pointer to a NULL-terminated array of berval structures for the
mod_bvalues
attribute.
Values that you want to add, delete, or replace.
mod_vals
Description
is a type of structure that you use to specify changes to an attribute in an
LDAPMod
directory entry. Before you call the
slapi_modify_internal_pb()
directory, you need to fill
intend to add or change.
The following section of code sets up an
address of a user's entry to
values to the entry.
attribute values from the entry.
existing value of the attribute with the value(s) in mod_values
or mod_bvalues.
mod->mod_op = LDAP_MOD_ADD |
LDAP_MOD_BVALUES
slapi_add_internal_pb()
routines to add or modify an entry in the
structures with the attribute values that you
LDAPMod
LDAPMod
bab@example.com
Summary of Data Types and Structures
0x00
0x01
0x02
0x80
and
structure to change the email
:
Chapter 14
Data Type and Structure Reference
185

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 7.1

Table of Contents