19.22. slapi_attr_value_find()

Description

Determines if an attribute contains a given value.

Syntax

#include "slapi-plugin.h"
int slapi_attr_value_find( const Slapi_Attr *a, const struct berval *v );

Parameters

This function takes the following parameters:

a Attribute that you want to check.
v Pointer to the berval structure containing the value for which you want to search.
Returns

This function returns one of the following values:

  • 0 if the attribute contains the specified value.
  • -1 if the attribute does not contain the specified value.