Chapter 53. Parameters Accessible to All Plug-ins

The parameters listed in this section are accessible to all types of plug-ins.

53.1. Information about the Database

The parameters listed below specify information about the backend database. These parameters are available for all types of plug-ins. These specific parameters cannot be set by calling slapi_pblock_set(). You can, however, get these parameters by calling slapi_pblock_get().
Parameter ID Data Type Description
SLAPI_BACKEND Slapi_Backend * The database backend servicing this operation. The value may be NULL if there is currently no backend associated with the operation.
SLAPI_BE_MONITORDN char * This is no longer supported.
SLAPI_BE_TYPE char * Type of backend database; this is the type specified by the nsslapd-database directive in the server configuration file.
SLAPI_BE_READONLY int Specifies whether the backend database is read-only; this is determined by the nsslapd-readonly directive in the server configuration file.
  • 1 means that the database backend is read-only.
  • 0 means that the database backend is writeable.
SLAPI_DBSIZE int Specifies the size of the backend database.
SLAPI_BE_LASTMOD int If 0 (false), the database does not keep track of the last modification time and who modified it. If non-zero (true), the database does keep track. The default is true.
SLAPI_BE_FLAG_REMOTE_DATA int Flag that indicates the entries held by the backend are remote.
SLAPI_BE_ALL_BACKENDS int Special value that is returned by a distribution plug-in function to indicate that all backends should be searched. Used only for search operations.
SLAPI_BE_MAXNESTLEVEL int * Indicates the maximum number of nesting levels allowed within groups for access control evaluation.
SLAPI_CLIENT_DNS struct berval ** Contains a list of client IP addresses that are registered in DNS. Used to determine the authorization type.
SLAPI_FAIL_DISKFULL int Return code for a backend API call that indicates the disk is full and the operation has failed.
SLAPI_FAIL_GENERAL int Return code for a backend API call that indicates that the operation has failed due to some cause other than disk full.