HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
14 Data type and structure reference
This part summarizes the data types and structures that you can use when writing HP-UX
Directory Server plug-in functions.
14.1 berval
Represents binary data that is encoded using simplified Basic Encoding Rules (BER).
Syntax This struct definition uses the following syntax:
typedef struct berval {
unsigned long bv_len;
char *bv_val;
}BerValue;
Fields This struct definition contains the following fields:
Table 14-1 Berval field listing
DescriptionField
The length of the data.
bv_len
The binary data.
bv_val
Description The berval data structure represents binary data that is encoded using simplified
Basic Encoding Rules (BER). The data and size of the data are included in a berval structure.
Use a berval structure when working with attributes that contain binary data (such as a JPEG
or audio file).
14.2 computed_attr_context
Represents information used for a computed attribute.
Syntax This struct definition uses the following syntax:
typedef struct _computed_attr_context computed_attr_context;
Description computed_attr_context is the data type for an opaque structure that represents
information about a computed attribute.
Before the Directory Server sends an entry back to a client, it determines if any of the attributes
are computed, generates the attributes, and includes the generated attributes in the entry.
As part of this process, the server creates a computed_attr_context structure to pass relevant
information to the functions generating the attribute values. Relevant information might include
the attribute type, the BER-encoded request so far, and the parameter block.
14.3 LDAPControl
Represents a client or server control associated with an LDAP operation.
The LDAPControl data type represents a client or server control associated with an LDAP
operation. Controls are part of the LDAPv3 protocol. You can use a client or server control to
extend the functionality of an LDAP control.
For example, a server control can specify that the server must sort search results in an LDAP
search operation.
Table 14-2 “Front end API functions for LDAP Controls” summarizes the front end API functions
that can be called to work with LDAP controls.
14.1 berval 117