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:

pb
Parameter block that matches the rewrite search filter.
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.