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.
#include "slapi-plugin.h" int slapi_entry_schema_check_ext( Slapi_PBlock *pb, Slapi_Entry *e, LDAPMod **mods );
This function takes the following parameters:
Parameter block.
Entry of which you want to check the schema.
Pointer to the modify structure whose attribute values are to be checked.
Returns one of the following values:
0 if the proposed modifications to the entry comply with the schema or if schema checking is turned off. The function also returns 0 if the entry has additional attributes not allowed by the schema and has the object class extensibleObject.
1 if the modifications cause the objectclass attribute or other required attributes to be missing, if the modifications add any attributes not allowed by the schema, or if the modifications result in multiple values for a single-valued attribute.
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.