Chapter 4. Populating Directory Databases
98
•
Using ldif2ldap.
This method appends the LDIF file through LDAP. This method is useful to append
data to all of the databases; see
Section 4.1.4.3, “Importing Using the ldif2ldap Command-Line
Script”
.
NOTE
The LDIF files used for import operations must use UTF-8 character set encoding. Import
operations do not convert data from local character set encoding to UTF-8 characterset
encoding.
WARNING
All imported LDIF files must also contain the root suffix.
NOTE
To import a database that has been encrypted, use the
-E
option with the script. See
Section 3.2.3.5, “Exporting and Importing an Encrypted Database”
for more information.
4.1.4.1. Importing Using the ldif2db Command-Line Script
The
ldif2db
script overwrites the data in the specified database. Also, the script requires that the
Directory Server be stopped when the import begins.
By default, the script first saves and then merges any existing
o=NetscapeRoot
configuration
information with the
o=NetscapeRoot
configuration information in the files being imported.
WARNING
This script overwrites the data in the database.
To import LDIF, do the following:
1. Stop the server.
2
service dirsrv stop
instance
2. Open the Directory Server instance directory.
cd /usr/lib/dirsrv/slapd-
instance_name
3. Run the
ldif2db
command-line script.
ldif2db -n Database1 -i /var/lib/dirsrv/slapd-
instance_name
/ldif/demo.ldif
-i /var/lib/dirsrv/slapd-
instance_name
/ldif/demo2.ldif
Содержание 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 ...