Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 162

Table of Contents

Advertisement

Summary of Data Types and Structures
Syntax
#include "slapi-plugin.h"
typedef int (*mrFilterMatchFn) (void* filter,
Slapi_Entry* entry, Slapi_Attr* attrs);
Parameters
The function has the following parameters:
filter
entry
attrs
Description
mrFilterMatchFn
called by the server when processing an "extensible match" filter.
An "extensible match" filter specifies either the OID of a matching rule or an
attribute type (or both) that indicates how matching entries are found. For
example, a "sound-alike" matching rule might find all entries that sound like a
given value.
To handle an "extensible match" filter for a matching rule, you can write a
matching rule plug-in.
One of the functions that you need to define is the "filter matching" function (the
function with the prototype specified by
function for each potential matching candidate entry. The server passes pointers to
a filter structure (that you create in your filter factory function -- see "Writing a
Filter Factory Function" on page 137 for details), the candidate entry, and the
entry's attributes.
In your filter matching function, you need to retrieve information about the filter
(such as the attribute type and value specified in the filter) from the filter structure.
You use this information to compare the value in the filter against the attribute
values in the candidate entry.
For more information on writing a filter matching function, see "Writing a Filter
Matching Function" on page 141.
162
Netscape Directory Server Plug-In Programmer's Guide • May 2002
Pointer to the filter structure created by your filter factory function. (For
details, see "Writing a Filter Factory Function" on page 137.)
Pointer to the Slapi_Entry structure representing the candidate entry
being checked by the server.
Pointer to the Slapi_Attr structure representing the first attribute in the
entry. To iterate through the rest of the attributes in the entry, call
slapi_entry_next_attr().
specifies the prototype for a "filter matching" function that is
). The server calls this
mrFilterMatchFn

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents