24.19. slapi_entry_attr_has_syntax_value()

Description

This function replaces the deprecated slapi_entry_attr_hasvalue() function and takes into consideration the syntax of the attribute type. It determines if an attribute in an entry contains a specified value.

Syntax

#include "slapi-plugin.h"
int slapi_entry_attr_has_syntax_value(const Slapi_Entry *e, const char *type, const Slapi_Value *value);

Parameters

e
Entry that you want to check.
type
Attribute type that you want to test for the value specified.
value
Value that you want to find in the attribute.

Returns

This function returns one of the following values:

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

value must not be NULL.