46.2. slapi_compute_add_search_rewriter()

Description

The slapi_compute_add_search_rewriter() function registers callback functions for filter searching and rewriting.

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
Function registered by the plug-in to rewrite the search filters.
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