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

slapi_mr_filter_index()

Call a matching rule filter index function.

Syntax

#include "slapi-plugin.h"
int slapi_mr_filter_index(Slapi_Filter* f, Slapi_PBlock* pb);

Parameters

This function takes the following parameters:

f

Filter containing the matching rule OID

pb

Parameter block to pass to the filter index function

Description

This function enables plug-ins to call matching rule filter index functions.

Returns

This function returns 0 if successful. It returns LDAP_UNAVAILABLE_CRITICAL_EXTENSION if no filter index function is available for the rule in the filter. It returns -1 if something goes horribly wrong setting the parameter block arguments.