Importing Data
Chapter 4
Populating Directory Databases
155
2.
Run the
ldif2db.pl
perl script.
For more information about using this Perl script, refer to
Red Hat Directory
Server Configuration, Command, and File Reference
.
The following example imports an LDIF file using the
ldif2db.pl
script. You do
not need
root
privileges to run the script, but you must authenticate as the
Directory Manager.
UNIX shell script:
ldif2db.pl -D "cn=Directory Manager" -w secretpwd
-i /opt/redhat-ds/servers/slapd-dirserver/ldif/demo.ldif
-n Database1
The following table describes the
ldif2db.pl
options used in the examples:
Importing Using the ldif2ldap Command-Line Script
The
ldif2ldap
script appends the LDIF file through LDAP. Using this script, you
import data to all directory databases at the same time. The server must be running
in order to import using
ldif2ldap
.
To import LDIF using
ldif2ldap
:
1.
From the command-line, change to the following directory:
serverRoot
/slapd-
serverID
2.
Run the
ldif2ldap
command-line script.
For more information about using this script, refer to
Red Hat Directory Server
Configuration, Command, and File Reference
.
Option
Description
-D
Specifies the DN of the administrative user.
-w
Specifies the password of the administrative user.
-i
Specifies the LDIF file(s) to be imported. This option is
required. You can use multiple
-i
arguments to import more
than one LDIF file at a time. When you import multiple files,
the server imports the LDIF files in the order in which you
specify them from the command-line.
-n
Specifies the name of the database into which you are
importing the data.
Содержание DIRECTORY SERVER 7.1
Страница 1: ...Administrator s Guide Red Hat Directory Server Version7 1 May 2005 Updated February 2009 ...
Страница 20: ...20 Red Hat Directory Server Administrator s Guide May 2005 Glossary 619 Index 635 ...
Страница 22: ...22 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 26: ...26 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 78: ...Maintaining Referential Integrity 78 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 200: ...Assigning Class of Service 200 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 278: ...Compatibility with Earlier Releases 278 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 374: ...Troubleshooting Replication Related Problems 374 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 478: ...Using the Management Information Base 478 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 488: ...488 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 528: ...PTA Plug in Syntax Examples 528 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 545: ...About Windows Sync Chapter 18 Windows Sync 545 Figure 18 1 Active Directory Directory Server Synchronization Process ...
Страница 572: ...572 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 586: ...Storing Information in Multiple Languages 586 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 606: ...Searching an Internationalized Directory 606 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 612: ...Examples of LDAP URLs 612 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 634: ...634 Red Hat Directory Server Administrator s Guide May 2005 ...