Slapi_Build_Control_From_Berval() - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

Functions for Dealing with Controls
Returns
This function returns
Description
This function creates an
and a criticality flag. The
requests or internal operations.
Memory Concerns
The contents of the
the caller should not free the
slapi_build_control()
The
LDAPControl
ldap_control_free()
SDK for C Programmer's Guide.
See Also

slapi_build_control_from_berval()

slapi_build_control()
ldap_control_free()
slapi_build_control_from_berval()
Creates an
criticality flag.
Syntax
#include "slapi-plugin.h"
int slapi_build_control_from_berval( char *oid,
struct berval *bvp,char iscritical, LDAPControl **ctrlp );
Parameters
This function takes the following parameters:
oid
bvp
iscritical
292
Netscape Directory Server Plug-in Programmer's Guide • October 2004
LDAP_SUCCESS
LDAPCotnrol
LDAPControl
parameter are consumed by this function. Because of this,
ber
BerElement
.
pointer that is returned in
, which is an LDAP API function; see the Netscape LDAP
structure based on a
LDAPControl
The OID (object identifier) for the control that is to be created.
A struct berval that contains the control value. Pass NULL if
the control has no value.
The criticality flag. If non-zero, the control will be marked as
critical. If 0, it will not be marked as critical.
(LDAP result code) if successful.
structure based on a
that is created can be used in LDAP client
once a successful call has been made to
should be freed by calling
ctrlp
struct berval
, an OID,
BerElement
, an OID, and a

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents