1.3. About the setup-ds-admin.pl Script
setup-ds.plscript as root.
setup-ds-admin.plscript 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.example.com
f(file) allow you to supply values for the setup program through a file. The
.inffile (described in more detail in Section 4.6, “Silent Setup”) has three sections for each of the major components of Directory Server:
slapd(LDAP server), and
.infcan be passed directly in the command line. Command-line arguments with
.infsetup file section (
admin), parameter, and value in the following form:
# setup-ds-admin.pl General.FullMachineName=ldap.example.com "slapd.Suffix=dc=example, dc=com” slapd.ServerPort=389
.infsets the defaults used in the interactive prompt unless they are used with the
s(silent) option. With the
soption, these values are accepted as the real settings.
.inffile can be used in conjunction with command line parameters. Parameters set in the command line override those specified in an
.inffile, which is useful for creating an
.inffile 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
FullMachineNamehave to be unique. For example:
# setup-ds-admin.pl -s -f common.inf General.FullMachineName=ldap37.example.com slapd.ServerIdentifier=ldap37
common.inffile, but overrides
ServerIdentifierwith the command line arguments.
.inffiles and on the command line are case sensitive. Refer to Appendix A, Parameters in
.infFiles to check the correct capitalization.
.inffile has an additional option,
ConfigFilewhich imports the contents of any LDIF file into the Directory Server. This is an extremely useful tool for preconfiguring users, replication, and other directory management entries. For more information on using the
ConfigFileparameter to configure the Directory Server, see Section 4.6.4, “Using the ConfigFile Parameter to Configure the Directory Server”.
Would you like to continue with setup? [yes]:
setup-ds-admin.plfinishes, it generates a log file in the
.logwhere XXXXXX is a series of random characters. This log file contains all of the prompts and answers supplied to those prompts, except for passwords.
setup-ds-admin, see the utility's description in the Red Hat Directory Server Configuration, Command, and File Reference.