Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 160

Table of Contents

Advertisement

Summary of Data Types and Structures
LDAPMod
LDAPMod
directory entry. Before you call the
slapi_modify_internal_pb()
directory, you need to fill
intend to add or change.
LDAPMod
typedef struct ldapmod {
int mod_op;
char *mod_type;
union {
} mod_vals;
} LDAPMod;
#define mod_values mod_vals.modv_strvals
#define mod_bvalues mod_vals.modv_bvals
The fields in this structure are described below:
mod_op
mod_type
mod_values
160
Netscape Directory Server Plug-In Programmer's Guide • May 2002
is a type of structure that you use to specify changes to an attribute in an
is defined as follows:
char **modv_strvals;
struct berval **modv_bvals;
The operation to be performed on the attribute and the type of data
specified as the attribute values. This field can have one of the
following values:
• LDAP_MOD_ADD specifies that you want to add the attribute
values to the entry.
• LDAP_MOD_DELETE specifies that you want to remove the
attribute values from the entry.
• LDAP_MOD_REPLACE specifies that you want to replace the
existing value of the attribute with the value(s) in mod_values
or mod_bvalues.
In addition, if you are specifying binary values (as opposed to
strings), you should OR (|) LDAP_MOD_BVALUES with the
operation type. For example:
mod->mod_op = LDAP_MOD_ADD |
LDAP_MOD_BVALUES
The attribute type that you want to add, delete, or replace.
Pointer to a NULL-terminated array of string values for the
attribute.
slapi_add_internal_pb()
routines to add or modify an entry in the
structures with the attribute values that you
LDAPMod
and

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents