32.6. slapi_matchingrule_register()

Description

This function registers the specified matching rule with the server. To create the matching rule and set its values, call the slapi_matchingrule_new() function and the slapi_matchingrule_set() function.

Syntax

#include "slapi-plugin.h"
int slapi_matchingrule_register(Slapi_MatchingRuleEntry *mrEntry);

Parameters

This function takes the following parameter:

mrEntry
Slapi_MatchingRuleEntry structure representing the matching rule that you want to register.
Returns

This function returns one of the following values:

  • 0 if the matching rule was successfully registered.
  • -1 if an error occurred.