Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual page 179

Table of Contents

Advertisement

See Also
Slapi_Mod
mrFilterMatchFn
pecifies the prototype for a filter matching callback function.
S
Syntax
#include "slapi-plugin.h"
typedef int (*mrFilterMatchFn) (void* filter,
Slapi_Entry* entry, Slapi_Attr* attrs);
Parameters
This function has the following parameters:
filter
entry
attrs
Returns
This function returns an integer value of 0 if the filter is matched or -1 if the filter
did not match. If an LDAP error occurs, it returns a value >0.
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.
and
.
Slapi_Mods
Pointer to the filter structure created by your filter factory function. (For
details, see "Writing a Filter Factory Function.")
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
Summary of Data Types and Structures
Chapter 14
Data Type and Structure Reference
179

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents