Creating and Maintaining Databases
Placing a Database in Read-Only Mode
When a database is in read-only mode, you cannot create, modify, or delete any
entries. For example, you must put a database in read-only mode if you are
manually initializing a consumer.
If your Directory Server manages multiple databases, you can place all of them
into read-only mode at the same time by placing your entire server in read-only
mode. For more information, see "Placing the Entire Directory Server in
Read-Only Mode," on page 40.
This section includes procedures for the following:
•
Making a Database Read-Only Using the Console
•
Making a Database Read-Only from the Command-Line
Making a Database Read-Only Using the Console
To place a database in read-only mode from the Directory Server Console:
In the Directory Server Console, select the Configuration tab.
1.
Expand Data in the left pane. Expand the suffix containing the database you
2.
want to put in read-only mode.
Select the database you want to put into read-only mode.
3.
Select the Database Settings tab in the right pane.
4.
Select the "Database is read-only" checkbox.
5.
Click Save.
6.
Making a Database Read-Only from the Command-Line
If you want to manually place a database into read-only mode, you must change
the read-only attribute,
command-line utility. The
is located in the
entry (where
NOTE
96
Red Hat Directory Server Administrator's Guide • May 2005
nsslapd-readonly
nsslapd-readonly
cn=database_name,cn=ldbm database,cn=plugins,cn=config
is the name of the database).
database_name
By default, the name of the database created at installation time is
.
userRoot
, to
. To do so, use the
on
attribute for a particular database
ldapmodify
Need help?
Do you have a question about the DIRECTORY SERVER 7.1 - ADMINISTRATOR and is the answer not in the manual?
Questions and answers