(Applies only to filters of the types LDAP_FILTER_EQUALITY, LDAP_FILTER_GE, LDAP_FILTER_LE, LDAP_FILTER_APPROX) Gets the attribute type and the value from the filter.
Syntax
#include "slapi-plugin.h"
int slapi_filter_get_ava( Slapi_Filter *f, char **type, struct
berval **bval );
Parameters
The function has the following parameters:
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.
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.
Example
[To be added]
See Also