Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 173

Table of Contents

Advertisement

Slapi_PBlock
Contains name-value pairs that you can get or set for each LDAP operation.
Syntax
#include slapi-plugin.h
typedef struct slapi_pblock Slapi_PBlock;
Description
Slapi_PBlock
from the server and set information to be used by the server.
For most types of plug-in functions, the server passes in a
structure that typically includes data relevant to the operation being processed.
You can get the value of a parameter by calling the
For example, when the plug-in function for an LDAP bind operation is called, the
server puts the DN and credentials in the
SLAPI_BIND_CREDENTIALS
call
slapi_pblock_get()
authentication.
For plug-in initialization functions, you can use the
pass information to the server, such as the description of your plug-in and the
names of your plug-in functions. You can set the value of a parameter by calling
the
slapi_pblock_set()
For example, in order to register a pre-operation bind plug-in function, you need to
call
slapi_pblock_set()
plug-in function as the
and
The available parameters that you can use depends on the type of plug-in function
you are writing.
See Also
slapi_pblock_new()
slapi_pblock_get()
slapi_pblock_set()
slapi_pblock_destroy()
contains name-value pairs that you can use to retrieve information
SLAPI_PLUGIN_VERSION
SLAPI_PLUGIN_PRE_BIND_FN
SLAPI_BIND_TARGET
parameters of the
Slapi_PBlock
to get the DN and credentials of the client requesting
function.
to set the version number, description, and name of the
parameters.
Chapter 13
Summary of Data Types and Structures
Slapi_PBlock
slapi_pblock_get()
and
structure. You can
structure to
Slapi_PBlock
,
SLAPI_PLUGIN_DESCRIPTION
Data Type and Structure Reference
function.
,
173

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents