HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
63 Parameters for the matching rule function
The following table lists the parameters in the parameter block passed to the database matching
rule function.
DescriptionData typeParameter ID
Matching rule OID (if any) specified in the extensible
match filter.
char *SLAPI_PLUGIN_MR_OID
Attribute type (if any) specified in the extensible match
filter.
char *SLAPI_PLUGIN_MR_TYPE
Value specified in the extensible match filter.
struct berval *SLAPI_PLUGIN_MR_VALUE
Pointer to an array of berval structures containing
the values of the entry's attributes that need to be
indexed.
struct berval **
values
SLAPI_PLUGIN_MR_VALUES
Keys generated for the values specified in the
SLAPI_PLUGIN_MR_VALUES parameter. The server
creates indexes using these keys.
struct berval **SLAPI_PLUGIN_MR_KEYS
Matching rule filter that is reusable.
unsigned int *SLAPI_PLUGIN_MR_FILTER_REUSABLE
Query operator used by the server to determine how
to compare the keys generated from
SLAPI_PLUGIN_MR_VALUES and
SLAPI_PLUGIN_MR_INDEX_FN against keys in the
index.
int *SLAPI_PLUGIN_MR_QUERY_OPERATOR
Specifies the intended use of the indexer object. This
parameter can have one of the following values:
SLAPI_PLUGIN_MR_USAGE_INDEX specifies that
the indexer object should be used to index entries.
SLAPI_PLUGIN_MR_USAGE_SORT specifies that
the indexer object should be used to sort entries.
You can use this to specify different information in the
indexer object or different indexer functions, based on
whether the plug-in is used for indexing or sorting.
unsigned int *SLAPI_PLUGIN_MR_USAGE
The following extended filter argument parameters are used with LDAPv3 only:
SLAPI_MR_FILTER_ENTRY
SLAPI_MR_FILTER_TYPE
SLAPI_MR_FILTER_VALUE
SLAPI_MR_FILTER_OID
SLAPI_MR_FILTER_DNATTRS
417