![Netscape NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION Manual Download Page 538](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-2-gateway-customization/netscape-directory-server-6-2-gateway-customization_manual_1674642538.webp)
Functions for Managing Computed Attributes
538
Netscape Directory Server Plug-In Programmer’s Guide • December 2003
slapi_compute_add_evaluator()
Registers the specified function as an evaluator that the server will call to generate
a computed attribute.
Syntax
#include “slapi-plugin.h”
int slapi_compute_add_evaluator( slapi_compute_callback_t function);
Parameters
This function takes the following parameters:
Returns
This function returns one of the following values:
•
0 if the function is successfully registered.
•
ENOMEM
if memory cannot be allocated to register this function.
Description
The
slapi_compute_add_evaluator()
function registers a function of the
slapi_compute_callback_t
type as an evaluator of computed attributes.
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.
Table 15-32
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.
function
Function registered by the plug-in that will be used in
evaluating the computed attributes.
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION
Page 1: ...Plug In Programmer s Guide Netscape Directory Server Version6 2 December 2003...
Page 18: ...18 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 56: ...56 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 112: ...112 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 168: ...Plug In API Reference 168 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 170: ...170 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 600: ...600 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 612: ...612 Netscape Directory Server Plug In Programmer s Guide December 2003...