LDAPSchemaMod

Contains the definition of one field in a schema definition.

Structure

  typedef struct ldap_schema_mod {
     int    op;
     char   *fieldName;
     char   **values;
  };
  

Fields

op

Indicates whether the values are to add to, replace, or delete from the existing values of a field, and is one of the following values:

  • LDAP_MOD_ADD

  • LDAP_MOD_DELETE

  • LDAP_MOD_REPLACE

fieldName

Identifies the name of the field. Macros for standard field names are defined in Section 6.11, Schema Element Types.

values

A NULL-terminated array of strings, containing the values that correspond to the field name.

Remarks

A NULL-terminated array of LDAPSchemaMod structures represent all fields to be included in a new definition, or all fields to be modified in an existing definition. A field value can be added, replaced or deleted.