32.4. slapi_matchingrule_is_ordering()

Determines if the matching rule is a valid ordering matching rule for the given syntax.
Syntax

This function takes the following syntax:

int slapi_matchingrule_is_ordering(const char *oid_or_name, const char *syntax_oid)
slapi_matchingrule_is_ordering Parameters

This function has the following parameters:

Parameter Description
oid_or_name The OID or name of the matching rule being applied.
syntax_oid The OID of the entry syntax. The function compares the type of matching rule to the allowed syntax.
Return Values

This function returns either of two values:

  • 1 means that the matching rule is a valid ordering matching rule for the given syntax.
  • 0 means that the matching rule could not be found, does not apply to the given syntax, or is not an ordering matching rule.