20.7. slapi_be_get_readonly()

Description

Indicates if the database associated with the backend is in read-only mode.

Syntax

#include "slapi-plugin.h"
int slapi_be_get_readonly(Slapi_Backend *be);

Parameters

This function takes the following parameter:

be Pointer to the structure containing the backend configuration.
Returns

This function returns one of the following values:

  • 0 if the database is not in read-only mode.
  • 1 if the database is in read-only mode.