Register a matching rule with the server.
#include "slapi-plugin.h" int slapi_matchingrule_register(Slapi_MatchingRuleEntry *mrEntry);
This function takes the following parameters:
Matching rule registration object
This function registers a Slapi_MatchingRuleEntry with the server. Register matching rules as part of the plug-in initialization function.
First, allocate the structure using slapi_matchingrule_new() . Next, set the members of the matching rule entry using slapi_matchingrule_set(). After setting the members, register the matching rule with the server using this function. Finally, free the memory allocated using slapi_matchingrule_free().
This function returns 0 if successful. Otherwise, it returns -1.