HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
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 preoperation 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.
Call this function:To:
“slapi_add_entry_internal_set_pb()”Set up a parameter block so that it can be used by
slapi_add_internal_pb() for an internal add
operation.
slapi_add_internal_pb()Add an LDAP add operation based on a parameter block
to add a new directory entry.
“slapi_add_internal_set_pb()”Set up a parameter block so that it can be used by
slapi_add_internal_pb() for an internal add
operation; the entry is constructed from a DN and a set
of attributes.
slapi_delete_internal_pb()Perform an LDAP delete operation based on a parameter
block to remove a directory entry.
“slapi_delete_internal_set_pb()”Delete an internal parameter block set.
slapi_modify_internal_pb()Perform an LDAP modify operation based on a parameter
block to modify a directory entry.
“slapi_modify_internal_set_pb()”Set up a parameter block so that it can be used by
slapi_modify_internal_pb() for an internal modify
operation.
slapi_modrdn_internal_pb()Perform an LDAP modify RDN operation based on a
parameter block to rename a directory entry.
“slapi_pblock_destroy()”
Free a pblock from memory.
“slapi_pblock_get()”
Get the value from a pblock.
“slapi_pblock_init()”Initialize an existing parameter block so that it can be
reused.
“slapi_pblock_new()”
Create a new pblock.
“slapi_pblock_set()”
Set the value of a pblock.
“slapi_rename_internal_set_pb()”Set up a parameter block so that it can be used by
slapi_modrdn_internal_pb() for an internal rename
operation.
slapi_search_internal_callback_pb()Perform an LDAP search operation based on a parameter
block to search the directory.
slapi_search_internal_pb()Search for an internal parameter block.
“slapi_search_internal_set_pb()”Set up a parameter block so that it can be used by
slapi_search_internal_pb() for an internal search
operation.
138 Data type and structure reference