Red Hat Directory Server 8.0 Administrator's Guide
2.1.3.2. Adding the Custom Distribution Function to a Suffix Using the
Command-Line
1. Run ldapmodify.
1
ldapmodify -p 389 -D "cn=directory manager" -w secret -h us.example.com
2. Add the following attributes to the suffix entry itself, supplying the information about the
custom distribution logic:
nsslapd-backend: Database1
nsslapd-backend: Database2
nsslapd-backend: Database3
nsslapd-distribution-plugin: /full/name/of/a/shared/library
nsslapd-distribution-funct:distribution-function-name
The nsslapd-backend attribute specifies all of the databases associated with this suffix. The
nsslapd-distribution-plugin attribute specifies the name of the library that the plug-in
uses. The nsslapd-distribution-funct attribute provides the name of the distribution
function itself.
For more information about using the ldapmodify command-line utility, see Section 2.4,
“Adding and Modifying Entries Using ldapmodify”.
2.2. Maintaining Directory Databases
This section describes jobs associated with maintaining directory databases. It includes the
following procedures:
• Section 2.2.1, “Placing a Database in Read-Only Mode”
• Section 2.2.2, “Deleting a Database”
• Section 2.2.3, “Configuring Transaction Logs for Frequent Database Updates”
2.2.1. Placing a Database in Read-Only Mode
When a database is in read-only mode, you cannot create, modify, or delete any entries. One of
the situations when read-only mode is useful is for manually initializing a consumer or before
backing up or exporting data from the Directory Server. Read-only mode ensures a faithful
image of the state of these databases at a given time.
The Directory Server Console and the command-line utilities do not automatically put the
directory in read-only mode before export or backup operations because this would make your
Maintaining Directory Databases
61