321
Appendix A. Using the ns-slapd
Command-Line Utilities
Chapter 7, Command-Line Scripts
discussed the scripts for performing routine administration tasks on
the Red Hat Directory Server (Directory Server). This appendix discusses the
ns-slapd
command-
line utilities that can be used to perform the same tasks.
The
ns-slapd
command-line utilities all perform server administration tasks, and, while it can
be argued that they allow a greater degree of flexibility for users, Red Hat recommends using the
command-line scripts described in
Chapter 7, Command-Line Scripts
A.1. Overview of ns-slapd
ns-slapd
is used to start the Directory Server process, to build a directory database from an LDIF
file, or to convert an existing database to an LDIF file. For more information on starting and stopping
the Directory Server, importing from LDIF using the command-line, and exporting to LDIF using the
command-line, refer to the "Populating Directory Databases" chapter in the
Red Hat Directory Server
Administrator's Guide
.
A.2. Finding and Executing the ns-slapd Command-Line
Utilities
The
ns-slapd
command-line utilities are stored in
/etc/dirsrv/slapd-
instance_name
NOTE
In order to execute the command-line utilities, set the library paths set in the command-
line scripts.
A.3. Utilities for Exporting Databases: db2ldif
Exports the contents of the database to LDIF.
Syntax
ns-slapd db2ldif
-D
configDir
-a
outputFile
[ -d
debugLevel
] [ -n
backendInstance
] [ -
r ] [ -s
includeSuffix
] [ -x
excludeSuffix
] [ -N ] [ -u ] [ -U ] [ -m ] [ -M ] [ -E ]
With this command, enter the full path to the configuration directory,
/etc/dirsrv/
slapd-
instance_name
. Either the
-n
or the
-s
option must be specified.
Options
Option
Description
-a
outputFile
Defines the output file in which the server saves
the exported LDIF. This file is stored by default
in the directory where the command-line utility
resides.
Содержание 8.1
Страница 8: ...viii ...
Страница 14: ...xiv ...
Страница 16: ...2 ...
Страница 250: ...236 ...
Страница 334: ...320 ...
Страница 372: ...358 ...