Sun Directory Server Enterprise Edition 7.0 Developer's Guide

Fields

This structure has the following fields.

Table 14–5 LDAPMod Fields

Field 

Description 

mod_op

Operation to perform and data type of attribute values. 

The mod_op field takes the following values specifying the operation to perform.

  • LDAP_MOD_ADD to add the attribute values to the entry.

  • LDAP_MOD_DELETE to remove the attribute values from the entry.

  • LDAP_MOD_REPLACE to replace existing attribute values.

    To specify binary values, bitwise OR the macro LDAP_MOD_BVALUES with the operation type identifier.

    mod->mod_op = LDAP_MOD_ADD|LDAP_MOD_BVALUES;

mod_type

Attribute type to modify. 

mod_values

Pointer to NULL terminated array of string values for the attribute.

mod_bvalues

Pointer to NULL terminated array of berval structures for the attribute.