Sun Java System Directory Server Enterprise Edition 6.1 Developer's Guide

slapi_entry_schema_check_ext()

Determines whether or not the proposed modifications to the specified entry comply with the schema for the entry's object class. This function does not check existing attributes not affected by the modifications.

Syntax

#include "slapi-plugin.h"
int slapi_entry_schema_check_ext( Slapi_PBlock *pb, Slapi_Entry *e,
    LDAPMod **mods );

Parameters

This function takes the following parameters:

pb

Parameter block.

e

Entry of which you want to check the schema.

mods

Pointer to the modify structure whose attribute values are to be checked.

Returns

Returns one of the following values:

Memory Concerns

The pb argument can be NULL. It is used only to get the SLAPI_IS_REPLICATED_OPERATION flag. If that flag is present, no schema checking is done.