![Netscape NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION Manual Download Page 205](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-2-gateway-customization/netscape-directory-server-6-2-gateway-customization_manual_1674642205.webp)
Summary of Data Types and Structures
Chapter
14
Data Type and Structure Reference
205
Slapi_PBlock
Contains name-value pairs, known as parameter blocks, that you can get or set for
each LDAP operation.
Syntax
#include slapi-plugin.h
typedef struct slapi_pblock Slapi_PBlock;
Description
Slapi_PBlock
contains name-value pairs that you can use to retrieve information
from the server and set information to be used by the server.
For most types of plug-in functions, the server passes in a
Slapi_PBlock
structure that typically includes data relevant to the operation being processed.
You can get the value of a parameter by calling the
slapi_pblock_get()
function.
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_TARGET
and
SLAPI_BIND_CREDENTIALS
parameters of the
Slapi_PBlock
structure. You can
call
slapi_pblock_get()
to get the DN and credentials of the client requesting
authentication.
For plug-in initialization functions, you can use the
Slapi_PBlock
structure to
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()
function.
For example, in order to register a pre-operation bind plug-in function, you need to
call
slapi_pblock_set()
to set the version number, description, and name of the
plug-in function as the
SLAPI_PLUGIN_VERSION
,
SLAPI_PLUGIN_DESCRIPTION
,
and
SLAPI_PLUGIN_PRE_BIND_FN
parameters.
The available parameters that you can use depends on the type of plug-in function
you are writing.
The following table summarizes the front-end API functions that you can call to
work with block parameters.
To do this...
Call this function
Sets up a parameter block so that it
can be used by
slapi_add_internal_pb()
for
an internal add operation
slapi_add_entry_internal_set_pb()
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION
Page 1: ...Plug In Programmer s Guide Netscape Directory Server Version6 2 December 2003...
Page 18: ...18 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 56: ...56 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 112: ...112 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 168: ...Plug In API Reference 168 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 170: ...170 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 600: ...600 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 612: ...612 Netscape Directory Server Plug In Programmer s Guide December 2003...