slapi_filter_get_ava()
slapi_filter_get_ava() gets the attribute
type and the value from the filter. It applies only to filters of
the types LDAP_FILTER_EQUALITY, LDAP_FILTER_GE,
LDAP_FILTER_LE, LDAP_FILTER_APPROX.
These filter types generally compare a value against an
attribute. For example, cn=John Doe. This filter
finds entries in which the value of the cn attribute
is equal to John Doe.
(cn=John Doe) - Syntax
#include "slapi-plugin.h" int slapi_filter_get_ava( Slapi_Filter *f, char **type, struct berval **bval );- Parameters
-
- f
- The address of the filter from which you want to get the attribute and value.
- type
- The pointer to the attribute type of the filter.
- bval
- The pointer to the address of the
bervalstructure that contains the value of the filter.
- Returns
- If successful 0 is returned, -1 is returned if the filter is not one of the types listed.