![Netscape NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION Manual Download Page 128](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-2-gateway-customization/netscape-directory-server-6-2-gateway-customization_manual_1674642128.webp)
Understanding Matching Rule Plug-Ins
128
Netscape Directory Server Plug-In Programmer’s Guide • December 2003
Finding a Plug-In for Searching
To determine which matching rule plug-in is responsible for handling an
extensible match filter for a given matching rule (based on its OID), the server does
the following for each plug-in:
1.
In a new
Slapi_PBlock
parameter block, the server sets the following
parameters:
❍
Sets the OID in the
SLAPI_PLUGIN_MR_OID
parameter.
❍
Sets the type (from the filter) in the
SLAPI_PLUGIN_MR_TYPE
parameter.
❍
Sets the value (from the filter) in the
SLAPI_PLUGIN_MR_VALUE
parameter.
2.
Next, the server calls the filter factory function (specified in the
SLAPI_PLUGIN_MR_FILTER_CREATE_FN
parameter) for the plug-in.
3.
The server checks the
SLAPI_PLUGIN_MR_FILTER_MATCH_FN
parameter.
❍
If the parameter is NULL, the plug-in does not handle the matching rule
specified by that OID.
❍
If the parameter returns a filter matching function, this plug-in handles the
matching rule specified by that OID.
4.
Finally, the server gets the following information from the plug-in for future
use:
❍
The filter index function specified in the
SLAPI_PLUGIN_MR_FILTER_INDEX_FN
parameter
❍
The value specified in the
SLAPI_PLUGIN_MR_FILTER_REUSABLE
parameter
❍
The filter reset function specified in the
SLAPI_PLUGIN_MR_FILTER_RESET_FN
parameter
❍
The filter object specified in the
SLAPI_PLUGIN_OBJECT
parameter
❍
The filter destructor function specified in the
SLAPI_PLUGIN_DESTROY_FN
parameter
Information specified in the filter object is used by both the filter index function
and the filter matching function.
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION
Page 1: ...Plug In Programmer s Guide Netscape Directory Server Version6 2 December 2003...
Page 18: ...18 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 56: ...56 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 112: ...112 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 168: ...Plug In API Reference 168 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 170: ...170 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 600: ...600 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 612: ...612 Netscape Directory Server Plug In Programmer s Guide December 2003...