22.2. slapi_call_syntax_assertion2keys_sub_sv()
When processing a search, calls the function (defined in the specified syntax plug-in) responsible for returning an array of values (specified by the search filter) to compare against the entries in the directory. This function applies to searches that use the filter type LDAP_FILTER_SUBSTRINGS.
ldbm backend (the default backend database) calls this function when processing searches in which the filter type is LDAP_FILTER_SUBSTRINGS.
vpi argument. This is the plug-in associated with the type of attribute used in the search. You can get this handle by calling the slapi_attr_type2plugin() function.
#include "slapi-plugin.h" int slapi_call_syntax_assertion2keys_sub_sv( void *vpi, char *initial, char **any, char *final, Slapi_Value ***ivals );
This function takes the following parameters:
|
vpi
| Handle to plug-in for this attribute type |
|
initial
| "Starts with" value from the search filter; for example, if the filter is ou=Sales*, the argument initial is Sales. |
|
any
| Array of "contains" values from the search filter; for example, if the filter is ou=*Corporate*Sales*, the argument any is an array containing Corporate and Sales. |
|
final
| "Ends with" value from the search filter; for example, if the filter is ou=*Sales, the argument final is Sales. |
|
ivals
| Pointer to an array of Slapi_Value structures containing the values returned by the plug-in function; these values can now be compared against entries in the directory. |
This function returns one of the following values:
- 0 if successful.
- -1 if an error occurs; for example, if the corresponding function for the specified plug-in is not found.

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.