Chapter 46. Functions for Managing Computed Attributes
Table 46.1. Routines for Computed Attributes
| Function | Description |
|---|---|
| slapi_compute_add_evaluator() | Registers a function as an evaluator that the server will call to generate a computed attribute. |
| slapi_compute_add_search_rewriter() | Registers callbacks for filter and search rewriting. |
| compute_rewrite_search_filter() | Call evaluator functions to see if there is a match with a search filter. |
46.1. slapi_compute_add_evaluator()
The slapi_compute_add_evaluator() function registers a function of the slapi_compute_callback_t type as an evaluator of computed attributes.
slapi_compute_add_evaluator() function.
#include "slapi-plugin.h" int slapi_compute_add_evaluator( slapi_compute_callback_t function);
This function takes the following parameter:
|
function
| Function registered by the plug-in that will be used in evaluating the computed attributes. |
This function returns one of the following values:
- 0 if the function is successfully registered.
ENOMEMif memory cannot be allocated to register this function.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.