Complete Contents
Getting Started
Chapter 1 Understanding Server Plug-Ins
Chapter 2 Writing and Compiling Plug-Ins
Chapter 3 Calling the Front-End API Functions
Chapter 4 Quick Start
Chapter 5 Writing Database Plug-Ins
Chapter 6 Writing Pre/Post-Operation Plug-Ins
Chapter 7 Defining Functions for LDAP Operations
Chapter 8 Defining Functions for Database Operations
Chapter 9 Defining Functions for Authentication
Chapter 10 Writing Entry Store/Fetch Plug-Ins
Chapter 11 Writing Extended Operation Plug-Ins
Chapter 12 Writing Matching Rule Plug-Ins
Chapter 13 Data Type and Structure Reference
Chapter 14 Function Reference
Chapter 15 Parameter Reference
Glossary
Previous Next Contents Bookshelf Datatypes List



 Slapi_Attr
Represents an attribute in an entry.

Syntax

typedef struct slapi_attr Slapi_Attr;

Description

Slapi_Attr is the data type for an opaque structure that represents an attribute in a directory entry. In certain cases, your server plug-in may need to work with an entry's attributes.

The following table summarizes the front-end API functions that you can call to work with attributes.
To do this...
Call this function
Iterate through the attributes in an entry
slapi_entry_first_attr(), slapi_entry_next_attr()

Determine if an entry contains a specific attribute
slapi_entry_attr_find()

Get the type of an attribute
slapi_attr_get_type()

Get the object identification (OID) of an attribute
slapi_attr_get_oid()

Get the values of an attribute
slapi_attr_get_values()

Determine if an attribute has the specified value
slapi_attr_value_find()

Compare two values of an attribute
slapi_attr_value_cmp()

Get the flags set for an attribute
slapi_attr_get_flags()

Determine if a specified flag has been set for an attribute
slapi_attr_flag_is_set()

See Also

Slapi_Entry.

 

© Copyright 1998 Netscape Communications Corporation