Sets callbacks for use by the server in searching against computed attributes.
#include "slapi-plugin.h" int slapi_compute_add_search_rewriter_ex( slapi_search_rewrite_callback_t function, slapi_search_rewrite_callback_t cleanup_function);
This function takes the following parameters:
Function to call to rewrite a filter for the search
Function to call to cleanup after performing the rewritten search
This function returns 0 if successful. Otherwise, it returns ENOMEM indicating that no memory could be allocated for the callback.
For a description of the callbacks, refer to the Chapter 15, Data Type and Structure Reference