HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
46.3 compute_rewrite_search_filter()
Description This function calls evaluator functions to see if there is a match with a search filter.
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.
Syntax
#include "slapi-plugin.h"
int compute_rewrite_search_filter (Slapi_PBlock *pb);
Parameters This function takes the following parameter:
Parameter block that matches the rewrite search filter.
pb
Returns This function returns one of the following values:
-0 indicates the function should keep looking for a match.
0 indicates the rewrite is successful.
1 indicates the function refuses to perform the search.
2 indicates the function encountered an error.
See also “slapi_compute_add_evaluator()”
364 Functions for managing computed attributes