Compares two values for a given attribute to determine if they are equal.
#include "slapi-plugin.h" int slapi_attr_value_cmp( Slapi_Attr *attr, struct berval *v1, struct berval *v2 );
This function takes the following parameters:
Attribute used to determine how these values are compared (for example, if the attribute contains case-insensitive strings, the strings are compared without regard to case).
Pointer to the berval structure containing the first value that you want to compare.
Pointer to the berval structure containing the second value that you want to compare.
This function returns one of the following values:
0 if the values are equal.
-1 if they are not equal.