Syntax
#include "slapi-plugin.h" int slapi_filter_get_subfilt( Slapi_Filter *f, char **type, char **initial, char ***any, char **final ); Parameters
#include "slapi-plugin.h" int slapi_filter_get_subfilt( Slapi_Filter *f, char **type, char **initial, char ***any, char **final );
The function has the following parameters:
f
type
initial
any
final
Returns
0 if successful, or -1 if the filter is not one of the types listed above.
Description
Filters of the type LDAP_FILTER_SUBSTRINGS generally compare a set of substrings against an attribute. For example:
(cn=John*Q*Public) This filter finds entries in which the value of the cn attribute starts with John, contains Q, and ends with Public.
(cn=John*Q*Public)
Call the slapi_filter_get_subfilt() function to get these substring values as well as the attribute type from this filter. In the case of the example above, calling the slapi_filter_get_subfilt() function gets the initial substring John, the any substring Q, and the final substring Public in addition to the attribute type cn.