Creating Databases
49
3.2.1.2. Creating a New Database for a Single Suffix from the Command
Line
Use the
ldapmodify
command-line utility to add a new database to the directory
configuration file. The database configuration information is stored in the
cn=ldbm
database,cn=plugins,cn=config
entry.
For example, add a new database to the server
example1
:
1. Run
ldapmodify
:
1
ldapmodify -a -h example1 -p 389 -D "cn=directory manager" -w secret
The
ldapmodify
utility binds to the server and prepares it to add an entry to the configuration file.
2. Create the entry for the new database.
dn: cn=UserData,cn=ldbm database,cn=plugins,cn=config
objectclass: extensibleObject
objectclass: nsBackendInstance
nsslapd-suffix: ou=people,dc=example,dc=com
The entry added corresponds to a database named
UserData
that contains the data for the root
or sub suffix
ou=people,dc=example,dc=com
.
3. Create a root or sub suffix, as described in
Section 3.1.1.3, “Creating Root and Sub Suffixes from
the Command Line”
. The database name, given in the DN attribute, must correspond with the
value in the
nsslapd-backend
attribute of the suffix entry.
3.2.1.3. Adding Multiple Databases for a Single Suffix
A single suffix can be distributed across multiple databases. However, to distribute the suffix, a custom
distribution function has to be created to extend the directory. For more information on creating a
custom distribution function, contact Red Hat Professional Services.
NOTE
Once entries have been distributed, they cannot be redistributed. The following restrictions
apply:
• The distribution function cannot be changed once entry distribution has been deployed.
• The LDAP
modrdn
operation cannot be used to rename entries if that would cause
them to be distributed into a different database.
• Distributed local databases cannot be replicated.
• The
ldapmodify
operation cannot be used to change entries if that would cause them
to be distributed into a different database.
Violating these restrictions prevents Directory Server from correctly locating and returning
entries.
After creating a custom distribution logic plug-in, add it to the directory.
Содержание DIRECTORY SERVER 8.0
Страница 18: ...xviii ...
Страница 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Страница 30: ...12 ...
Страница 112: ...94 ...
Страница 128: ...110 ...
Страница 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Страница 224: ...206 ...
Страница 324: ...306 ...
Страница 334: ...316 ...
Страница 358: ...340 ...
Страница 410: ...392 ...
Страница 420: ...402 ...
Страница 444: ...426 ...
Страница 454: ...436 ...
Страница 464: ...446 ...
Страница 484: ...466 ...
Страница 512: ...494 ...
Страница 522: ...504 ...