Determines if an attribute contains a given value, using the equality matching rule.
#include "slapi-plugin.h" int slapi_attr_value_find( Slapi_Attr *a, struct berval *v );
This function takes the following parameters:
Attribute that you wish to check.
Pointer to the berval structure containing the value for which you wish to search.
This function returns one of the following values:
0 if the attribute contains a match for the specified value according to the equality matching rule.
As an example for CN, BABS JENSEN and Babs Jensen match.
-1 if the attribute does not contain the specified value.