Syntax
#include "slapi-plugin.h" int slapi_filter_get_ava( Slapi_Filter *f, char **type, struct berval **bval ); Parameters
#include "slapi-plugin.h" int slapi_filter_get_ava( Slapi_Filter *f, char **type, struct berval **bval );
The function has the following parameters:
f
type
bval
Returns
0 if successful, or -1 if the filter is not one of the types listed above.
Description
Filters of the type LDAP_FILTER_EQUALITY, LDAP_FILTER_GE, LDAP_FILTER_LE, and LDAP_FILTER_APPROX generally compare a value against an attribute. For example:
(cn=Barbara Jensen) This filter finds entries in which the value of the cn attribute is equal to Barbara Jensen.
(cn=Barbara Jensen)
Call the slapi_filter_get_ava() function to get the attribute type and value from this filter. In the case of the example above, calling the slapi_filter_get_ava() function gets the attribute type cn and the value Barbara Jensen.