Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual page 539

Table of Contents

Advertisement

To do this, the server calls each registered evaluator function for each individually
requested attribute. An evaluator function has the type
slapi_compute_callback_t
of a computed attribute and send the attribute back with each entry, you can define
an evaluator function and register the function with the server by calling the
slapi_compute_add_evaluator()
slapi_compute_add_search_rewriter()
Register callbacks for rewriting search filters.
Syntax
#include "slapi-plugin.h"
int slapi_compute_add_search_rewriter
(slapi_search_rewrite_callback_t function);
Parameters
This function takes the following parameters:
function
Returns
This function returns one of the following values:
-1 if no attribute matched the requested type
0 if one matched and it was processed without error
>0 if an error happened
Description
The
slapi_compute_add_search_rewriter()
functions for filter searching and rewriting.
Syntax
#include "slapi-plugin.h"
int slapi_compute_add_search_rewriter(slapi_search_rewrite_
callback_t function);
. If you want to set up the server to generate the value
function.
Function registered by the plug-in to rewrite the search filters.
Functions for Managing Computed Attributes
function registers callback
Chapter 15
Function Reference
539

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents