JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Directory Server Enterprise Edition Developer's Guide 11 g Release 1 (11.1.1.5.0)
search filter icon
search icon

Document Information

Preface

Part I Directory Server Plug-In API Guide

1.  Before You Start Writing Plug-Ins

2.  Changes to the Plug-In API Since Directory Server 5.2

3.  Getting Started With Directory Server Plug-Ins

4.  Working With Entries Using Plug-Ins

5.  Extending Client Request Handling Using Plug-Ins

6.  Handling Authentication Using Plug-Ins

7.  Performing Internal Operations With Plug-Ins

8.  Writing Entry Store and Entry Fetch Plug-Ins

9.  Writing Extended Operation Plug-Ins

10.  Writing Matching Rule Plug-Ins

11.  Writing Password Storage Scheme Plug-Ins

12.  Writing Password Quality Check Plug-Ins

13.  Writing Computed Attribute Plug-Ins

Part II Directory Server Plug-In API Reference

14.  Data Type and Structure Reference

15.  Function Reference, Part I

16.  Function Reference, Part II

17.  Parameter Block Reference

Parameter Categories

Access Log

Add

Backend Information

Bind

Compare

Connection Information

Delete

Directory Configuration Information

Extended Operations

Internal Operations

Modify

Operation Information

Plug-In Registration

Password Verification

Post-Operation Entry Access

Startup and Shutdown

Extended Operations

Internal Postoperation

Internal Preoperation

Entry Storage and Retrieval

Matching Rules

Postoperation

Preoperation

One-Way and Reversible Password Storage

Rename (Modify RDN)

Results

Search

A.  NameFinder Application

Prerequisite Software

Deploying NameFinder

Configuring NameFinder to Access Your Directory

Customizing NameFinder

Index

Matching Rules

Parameters for registering matchingrule plug-in functions and arguments follow.

Table 17-22 Matching Rule Function and Argument Registration Parameters

Parameter ID
Data Type
Description
SLAPI_MATCHINGRULE_DESC
-
Used to signify registration of the matching rule description with slapi_matchingrule_set().
SLAPI_MATCHINGRULE_NAME
-
Used to signify registration of the matching rule name with slapi_matchingrule_set().
SLAPI_MATCHINGRULE_OBSOLETE
-
Used to signify the matching rule is obsolete when registering with slapi_matchingrule_set().
SLAPI_MATCHINGRULE_OID
-
Used to signify registration of the matching rule object identifier with slapi_matchingrule_set().
SLAPI_MATCHINGRULE_SYNTAX
-
Used to signify registration of the matching rule syntax with slapi_matchingrule_set().
SLAPI_PLUGIN_DESTROY_FN
void *
Function called to free memory allocated to filter object.
SLAPI_PLUGIN_MR_FILTER_CREATE_FN
void *
Filter factory function.
SLAPI_PLUGIN_MR_FILTER_INDEX_FN
void *
Function called to set the indexer function.
SLAPI_PLUGIN_MR_FILTER_MATCH_FN
void *
Function called to check for a match.
SLAPI_PLUGIN_MR_FILTER_RESET_FN
void *
Function called to reset the match filter.
SLAPI_PLUGIN_MR_FILTER_REUSABLE
unsigned int
Whether the filter is reusable.
  • 0 false.

  • 1 true.

SLAPI_PLUGIN_MR_INDEXER_CREATE_FN
void *
Index factory function.
SLAPI_PLUGIN_MR_INDEX_FN
void *
Function called to index a single entry.
SLAPI_PLUGIN_MR_KEYS
struct berval **
Array of index keys corresponding to the attribute values.
SLAPI_PLUGIN_MR_OID
char *
Object identifier (OID) corresponding to the extensible match rule.
SLAPI_PLUGIN_MR_QUERY_OPERATOR
int
Type of operator used to check for matches.

SLAPI_OP_EQUAL

SLAPI_OP_GREATER

SLAPI_OP_GREATER_OR_EQUAL

SLAPI_OP_LESS

SLAPI_OP_LESS_OR_EQUAL

SLAPI_OP_SUBSTRING

SLAPI_PLUGIN_MR_TYPE
char *
Matching rule filter type.
SLAPI_PLUGIN_MR_USAGE
unsigned int
Whether to use the rule to index or to sort.

SLAPI_PLUGIN_MR_USAGE_INDEX

SLAPI_PLUGIN_MR_USAGE_SORT

SLAPI_PLUGIN_MR_VALUE
struct berval *
Attribute value to match.
SLAPI_PLUGIN_MR_VALUES
struct berval **
Array of attribute values to match.
SLAPI_PLUGIN_OBJECT
void *
Filter object for extensible match.

You define this data structure to use in a matching rule plug-in.