Installation guide

configuration settings for the Directory Server and Admin Server instances. For example:
setup-ds-admin.pl
The setup-ds-adm in.pl script can also accept a setup file or have arguments passed with the
command to supply configuration information automatically.
setup-ds-admin.pl -s -f /export/files/install.inf
setup-ds-admin.pl General.FullMachineName=ldap.exam ple.com
Some options, such as s (silent) and f (file) allow you to supply values for the setup program through a
file. T he .inf file (described in more detail in Section 4.5,Silent Setup) has three sections for each of
the major components of Directory Server: General (host server), slapd (LDAP server), and adm in
(Admin Server).
The same parameters specified in the .inf can be passed directly in the command line. Command-line
arguments with setup-ds-adm in.pl specify the .inf setup file section (General, slapd, or
admin), parameter, and value in the following form:
section.parameter=value
For example, to set the machine name, suffix, and Directory Server port of the new instance, the
command is as follows:
setup-ds-admin.pl General.FullMachineName=ldap.exam ple.com
slapd.Suffix=dc=exam ple,dc=com slapd.ServerPort=389
NOTE
Passing arguments in the command line or specifying an .inf sets the defaults used in the
interactive prompt unless they are used with the s (silent) option. With the s option, these values
are accepted as the real settings.
Argument values containing spaces or other shell special characters must quoted to prevent the shell
from interpreting them. In the previous example, the suffix value has a space character, so the entire
parameter has to be quoted. If many of the parameters have to be quoted or escaped, use an .inf file
instead.
An .inf file can be used in conjunction with command line parameters. Parameters set in the command
line override those specified in an .inf file, which is useful for creating an .inf file to use to set up
many Directory Servers. Many of the parameters can be the same, such as ConfigDirectoryLdapURL,
ones specific to the host, such as FullMachineName have to be unique. For example:
setup-ds-admin.pl -s -f com mon.inf General.FullMachineName=ldap37.example.com
slapd.ServerIdentifier=ldap37
This command uses the common parameters specified in the com m on.inf file, but overrides
FullMachineName and ServerIdentifier with the command line arguments.
Red Hat Directory Server 8.2 Installation Guide
14