Before the server sends an entry as a search result back to the client, the server
determines if any of the requested attributes are computed attributes and generates
the values for those attributes.
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 parameter:
function
Returns
This function returns one of the following values:
•
-1
•
0
•
>
Description
The
slapi_compute_add_search_rewriter()
functions for filter searching and rewriting.
Function registered by the plug-in to rewrite the search filters.
if no attribute matched the requested type
if one matched and it was processed without error
if an error happened
0
. If you want to set up the server to generate the value
function.
function registers callback
Functions for Managing Computed Attributes
Chapter 15
Function Reference
549
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 7.0 - PLUG-IN and is the answer not in the manual?
Questions and answers