Returns
This function returns one of the following values:
•
0
•
-1
Description
Use this function to get the first value of an attribute. This is part of a set of
functions to enumerate over an
See Also
slapi_attr_next_value()
slapi_attr_get_numvalues()
slapi_attr_flag_is_set()
Determines if certain flags are set for a particular attribute. These flags can identify
an attribute as a single-valued attribute, an operational attribute, or as a read-only
attribute.
Syntax
#include "slapi-plugin.h"
int slapi_attr_flag_is_set( const Slapi_Attr *attr, unsigned long
flag );
Parameters
This function takes the following parameters:
attr
flag
The value of the
SLAPI_ATTR_FLAG_SINGLE
SLAPI_ATTR_FLAG_OPATTR
SLAPI_ATTR_FLAG_READONLY
, which is the index of the first value.
if NULL or if the value
Attribute that you want to check.
Flag that you want to check in the attribute.
argument can be one of the following:
flag
is not found.
hint
structure.
Slapi_Attr
Flag that determines if the attribute is single-valued.
Flag that determines if the attribute is an operational
attribute.
Flag that determines if the attribute is read-only.
Functions for Handling Attributes
Chapter 15
Function Reference
257
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 7.0 - PLUG-IN and is the answer not in the manual?
Questions and answers