Complete Contents
Introduction
Chapter 1 Preparing for Installation
Chapter 2 Using Express and Typical Install
Chapter 3 Using Custom Install
Chapter 4 Silent Installation
Chapter 5 Installing and Configuring the Synch Service
Chapter 6 Upgrading and Migrating the Directory Server
Chapter 7 Troubleshooting
Previous Next Contents Index


Chapter 4 Silent Installation

Silent installation allows you to use a file to predefine all the answers that you would normally supply to the setup program interactively. This provides you with the ability to script the installation of your Directory Servers.

This chapter includes the following sections:


Using Silent Installation
To use silent installation, you call the setup program with the -s and -f command line options. That is, to use silent installation:

  1. On Unix machines, log in as root. On Windows NT machines, login with Administrator privileges.
  2. If you have not already done so, download the product binaries file to the installation directory.
  3. On Unix, unpack the product binaries file using the following command:
  4. # gzip -dc <filename>.tar.gz | tar -xvof-

    where <filename> corresponds to the product binaries that you want to unpack.

    On Windows NT, unzip the product binaries.

  5. Prepare the file that will contain your installation directives.
  6. Run the setup program with the -s and -f command line options:
  7. setup -s -f <filename>

    where <filename> is the name of the file that contains your installation directives.

The next section in this chapter provides some examples of the silent install files. Following that is a section that describes all of the silent installation directives that you can use when installing the Directory Server.


Silent Installation Examples
Silent installation is intended for use at sites where many server instances must be created. For Directory Server, it is especially useful for heavily replicated sites that will create a large number of consumer servers.

This section first describes how to create silent installation files. It then provides examples of using silent installation to support the following common installation scenarios:

You find a definition of the individual installation directives in "Installation Directives".

Creating Silent Installation Files

The best way to create a file for use with silent installation is to use the setup program to interactively create a server instance of the type that you want to duplicate around your enterprise. At the end of your installation process, the setup program will ask you if you want to save the install.inf file. This file contains all the directives that you would use with silent installation to create the server instance. You can then use this file to create other server instances of that type.

If you do not delete the file at installation time, you can find it at:

<NSHOME>/setup/install.inf

However, you will have to make some modifications to this file before you use it on other machines. Specifically, make sure you:

A Typical Installation

The following is the install.inf file that is generated for a typical installation:

[General]
FullMachineName= dir.airius.com
SuiteSpotUserID= nobody
SuiteSpotGroup= nobody
ServerRoot= /usr/netscape/server4
AdminDomain= mcom.com
ConfigDirectoryAdminID= admin
ConfigDirectoryAdminPwd= admin
ConfigDirectoryLdapURL= ldap://dir.airius.com:389/o=NetscapeRoot
UserDirectoryAdminID= admin
UserDirectoryAdminPwd= admin
UserDirectoryLdapURL= ldap://dir.airius.com:389/o=airius.com
Components= svrcore,base,slapd,admin

[slapd]
SlapdConfigForMC= Yes
SecurityOn= No
UseExistingMC= No
UseExistingUG= No
ServerPort= 389
ServerIdentifier= dir
Suffix= o=mcom.com
RootDN= cn=Directory Manager
UseReplication= No
SetupSupplier= No
SetupConsumer= No
AddSampleEntries= No
InstallLdifFile= suggest
AddOrgEntries= Yes
DisableSchemaChecking= No
RootDNPwd= admin123
Components= slapd,slapd-client

[admin]
SysUser= root
Port= 23611
ServerIpAddress= 111.11.11.11
ServerAdminID= admin
ServerAdminPwd= admin
Components= admin,admin-client,base-jre

[base]
Components= base,base-client

Creating an SIR Consumer Server

The following is the install.inf file that is generated when you install a consumer server for supplier-initiated replication:

[General]
FullMachineName= dir.airius.com
SuiteSpotUserID= nobody
SuiteSpotGroup= nobody
ServerRoot= /usr/netscape/server4
AdminDomain= airius.com
ConfigDirectoryAdminID= admin
ConfigDirectoryAdminPwd= admin
ConfigDirectoryLdapURL= ldap://dir.airius.com:25389/o=NetscapeRoot
UserDirectoryLdapURL= ldap://consumer1.airius.com:32389/o=airius.com
UserDirectoryAdminID= cn=Directory Manager
UserDirectoryAdminPwd= admin123
Components= svrcore,base,slapd,admin

[slapd]
SlapdConfigForMC= No
SecurityOn= No
UseExistingMC= yes
UseExistingUG= No
ServerPort= 32389
ServerIdentifier= consumer1
Suffix= o=airius.com
RootDN= cn=Directory Manager
UseReplication= yes
SetupSupplier= No
SetupConsumer= 1
AddSampleEntries= No
InstallLdifFile= suggest
AddOrgEntries= Yes
DisableSchemaChecking= No
RootDNPwd= admin123
UpdateDN= cn=supplier
UpdatePwd= supplier
Components= slapd,slapd-client

[admin]
SysUser= root
Port= 2101
ServerIpAddress= 111.11.11.11
ServerAdminID= admin
ServerAdminPwd= admin
Components= admin,admin-client,base-jre

[base]
Components= base,base-client

Creating a CIR Consumer Server

The following is the install.inf file that is generated when you install a consumer server for consumer-initiated replication:

[General]
FullMachineName= dir.airius.com
SuiteSpotUserID= nobody
SuiteSpotGroup= nobody
ServerRoot= /usr/netscape/server4
AdminDomain= airius.com
ConfigDirectoryAdminID= admin
ConfigDirectoryAdminPwd= admin
ConfigDirectoryLdapURL= ldap://dir.airius.com:25389/o=NetscapeRoot
UserDirectoryLdapURL= ldap://consumer2.airius.com:24389/o=airius.com
UserDirectoryAdminID= cn=Directory Manager
UserDirectoryAdminPwd= admin123
Components= svrcore,base,slapd,admin

[slapd]
SlapdConfigForMC= No
SecurityOn= No
UseExistingMC= yes
UseExistingUG= No
ServerPort= 24389
ServerIdentifier= consumer2
Suffix= o=airius.com
RootDN= cn=Directory Manager
UseReplication= yes
SetupSupplier= No
SetupConsumer= 2
AddSampleEntries= No
InstallLdifFile= suggest
AddOrgEntries= Yes
DisableSchemaChecking= No
RootDNPwd= admin123
CIRHost= dir.airius.com
CIRPort= 25389
CIRBindDN= cn=Replication Consumer, o=airius.com
CIRBindDNPwd= replication
CIRSuffix= ou=people, o=airius.com
CIRInterval= 0
CIRDays=
Components= slapd,slapd-client

[admin]
SysUser= root
Port= 1547
ServerIpAddress= 111.11.11.11
ServerAdminID= admin
ServerAdminPwd= admin
Components= admin,admin-client,base-jre

[base]
Components= base,base-client

Creating an SIR Supplier Server

The following is the install.inf file that is generated when you install a supplier server for supplier-initiated replication:

[General]
FullMachineName= dir.airius.com
SuiteSpotUserID= nobody
SuiteSpotGroup= nobody
ServerRoot= /usr/netscape/server4
AdminDomain= airius.com
ConfigDirectoryAdminID= admin
ConfigDirectoryAdminPwd= admin
ConfigDirectoryLdapURL= ldap://dir.airius.com:12683/o=airius.com
UserDirectoryAdminID= admin
UserDirectoryAdminPwd= admin
UserDirectoryLdapURL= ldap://dir.airius.com:12683/o=airius.com
Components= svrcore,base,slapd,admin

[slapd]
SlapdConfigForMC= Yes
SecurityOn= No
UseExistingMC= No
UseExistingUG= No
ServerPort= 12683
ServerIdentifier= supplier1
Suffix= o=airius.com
RootDN= cn=Directory Manager
UseReplication= yes
SetupSupplier= 1
SetupConsumer= No

AddSampleEntries= No
InstallLdifFile= suggest
AddOrgEntries= Yes
DisableSchemaChecking= No
RootDNPwd= admin123
ChangeLogSuffix= cn=changelog
ChangeLogDir= /usr/netscape/server4/slapd-supplier1/logs/changelogdb
SIRHost= dir.airius.com
SIRPort= 25389
SIRBindDN= cn=supplier
SIRBindDNPwd= supplier
SIRSuffix= ou=people,o=airius.com
SIRDays=
Components= slapd,slapd-client

[admin]
SysUser= root
Port= 8741
ServerIpAddress= 111.11.11.11
ServerAdminID= admin
ServerAdminPwd= admin
Components= admin,admin-client,base-jre

[base]
Components= base,base-client

Creating a CIR Supplier Server

The following is the install.inf file that is generated when you install a supplier server for consumer-initiated replication:

[General]
FullMachineName= dir.airius.com
SuiteSpotUserID= nobody
SuiteSpotGroup= nobody
ServerRoot= /usr/netscape/server4
AdminDomain= airius.com
ConfigDirectoryAdminID= admin
ConfigDirectoryAdminPwd= admin
ConfigDirectoryLdapURL= ldap://dir.airius.com:2346/o=airius.com
UserDirectoryAdminID= admin
UserDirectoryAdminPwd= admin
UserDirectoryLdapURL= ldap://dir.airius.com:2346/o=airius.com
Components= svrcore,base,slapd,admin

[slapd]
SlapdConfigForMC= Yes
SecurityOn= No
UseExistingMC= No
UseExistingUG= No
ServerPort= 2346
ServerIdentifier= supplier2
Suffix= o=airius.com
RootDN= cn=Directory Manager
UseReplication= yes
SetupSupplier= 2
SetupConsumer= No
AddSampleEntries= No
InstallLdifFile= suggest
AddOrgEntries= Yes
DisableSchemaChecking= No
RootDNPwd= admin123
ChangeLogSuffix= cn=changelog
ChangeLogDir= /usr/netscape/server4/slapd-supplier2/logs/changelogdb
ConsumerDN= cn=replication, o=airius.com
ConsumerPwd= replication
Components= slapd,slapd-client

[admin]
SysUser= root
Port= 3622
ServerIpAddress= 111.11.11.11
ServerAdminID= admin
ServerAdminPwd= admin
Components= admin,admin-client,base-jre

[base]
Components= base,base-client

Using an Existing Configuration Directory

The following is the install.inf file that is generated when you perform a typical install and you choose to use an existing Directory Server as the configuration directory:

[General]
FullMachineName= dir.airius.com
SuiteSpotUserID= nobody
SuiteSpotGroup= nobody
ServerRoot= /usr/netscape/server4
AdminDomain= airius.com
ConfigDirectoryAdminID= admin
ConfigDirectoryAdminPwd= admin
ConfigDirectoryLdapURL= ldap://dir.airius.com:25389/o=NetscapeRoot
UserDirectoryLdapURL= ldap://dir.airius.com:18257/o=airius.com
UserDirectoryAdminID= cn=Directory Manager
UserDirectoryAdminPwd= admin123
Components= svrcore,base,slapd,admin

[slapd]
SlapdConfigForMC= No
SecurityOn= No
UseExistingMC= y
UseExistingUG= No
ServerPort= 18257
ServerIdentifier= directory
Suffix= o=airius.com
RootDN= cn=Directory Manager
UseReplication= No
SetupSupplier= No
SetupConsumer= No
AddSampleEntries= No
InstallLdifFile= suggest
AddOrgEntries= Yes
DisableSchemaChecking= No
RootDNPwd= admin123
Components= slapd,slapd-client

[admin]
SysUser= root
Port= 33646
ServerIpAddress= 111.11.11.11
ServerAdminID= admin
ServerAdminPwd= admin
Components= admin,admin-client,base-jre

[base]
Components= base,base-client

Installing the Stand-Alone Netscape Console

The following is the install.inf file that is generated when you install just Netscape Console:

[General]
FullMachineName= dir.airius.com
ConfigDirectoryLdapURL= ldap://dir.airius.com:389/o=NetscapeRoot
SuiteSpotUserID= nobody
SuiteSpotGroup= nobody
ConfigDirectoryAdminID= admin
ConfigDirectoryAdminPwd= admin
ServerRoot= /usr/netscape/server4
Components= svrcore,base,slapd,admin

[base]
Components= base-client

[slapd]
Components= slapd-client

[admin]
Components= admin-client,base-jre


Installation Directives
This section describes the basic format of the file used for silent installation. It then describes the directives that are available for each area of the silent installation file. Specifically, the following sections are provided here:

Silent Installation File Format

When you use silent installation, you provide all the installation information in a file. This file is formatted as follows:

[General]
directive=value
directive=value
directive=value
...
[Base]
directive=value
directive=value
directive=value
...
[slapd]
directive=value
directive=value
directive=value
...
[admin]
directive=value
directive=value
directive=value
....

The keywords [General], [slapd], and [admin] are required. They indicate that the directives that follow are meant for a specific aspect of the installation. They must be provided in the file in the order indicated above.

[General] Installation Directives

[General] installation directives specify information of global interest to the Netscape servers installed at your site. That is, the information you provide here will be common to all your Netscape servers.

The [General] installation directives are:

Table 4.1 [General] Installation Directives  

Directive
Description
Components
Specifies components to be installed. The list of available components will differ depending on the Netscape servers available on your installation media. For stand-alone directory installation, the list of components is:
This directive is required. At a minimum, you should always provide:
components = srvrcore, base, admin
ServerRoot
Specifies the full path to the directory where the Netscape server binaries are installed. This directive is required.
FullMachineName
Specifies the fully qualified domain name of the machine on which you are installing the server. The default is the local host name.
SuiteSpotUserID
Unix only. Specifies the username that Netscape servers will run as. This parameter does not apply to the user that the Administration Server runs as. See the SysUser directive in Table 4.10 for more information. The default is user nobody.
SuiteSpotGroup
Unix only. Specifies the group that Netscape servers will run as. The default is group nobody.
ConfigDirectoryLdapURL
Specifies the LDAP URL that is used to connect to your configuration directory. LDAP URLs are described in the Netscape Directory Server Administrator's Guide. This directive is required.
AdminDomain
Specifies the administration domain under which this server will be registered. See "Determine the Administration Domain" for more information about administration domains.
ConfigDirectoryAdminID
Specifies the user ID of the entry that has administration privileges to the configuration directory. This directive is required.
ConfigDirectoryAdminPwd
Specifies the password for the ConfigDirectoryAdminID. This directive is required.
UserDirectoryLdapURL
Specifies the LDAP URL that is used to connect to the directory where your user and group data is stored. If this directive is not supplied, the configuration directory is used for this purpose. LDAP URLs are described in the Netscape Directory Server Administrator's Guide.
UserDirectoryAdminID
Specifies the user ID of the entry that has administration privileges to the user directory.
UserDirectoryAdminPwd
Specifies the password for the UserDirectoryAdminID.

[Base] Installation Directives

There is only one [Base] installation directive and it allows you to determine whether Netscape Console is installed:

Table 4.2 [Base] Installation Directive

Directive
Description
Components
Specifies the base components to be installed. The base components are:
This directive is required if you are installing a Netscape server (versus, for example, just Netscape Console). You must install both packages when you are installing a Netscape server.

[slapd] Installation Directives

[slapd] installation directives specify information of interest only to the Directory Server instance that you are currently installing. These directives are described in the following sections:

Required [slapd] Installation Directives

You must provide the following directives when you use silent installation with Directory Server:

Table 4.3 Required [slapd] Installation Directives  

Directive
Description
Components
Specifies the slapd components to be installed. The slapd components are:
This directive is required. It is recommended that you always install both components any time you install the Directory Server.
ServerPort
Specifies the port the server will use for LDAP connections. For information on selecting server port numbers, see "Choose Unique Port Numbers" This directive is required.
ServerIdentifier
Specifies the server identifier. This directive is required.
This value is used as part of the name of the directory in which the Directory Server instance is installed. For example, if your machine's hostname is "phonebook" then this name is the default and selecting it will cause the Directory Server instance to be installed into a directory labeled "slapd-phonebook".
Suffix
Specifies the suffix under which you will store your directory data. For information on suffixes, see "Determine your Directory Suffix". This directive is required.
RootDN
Specifies the distinguished name used by the directory manager. For information on the directory manager, see "Defining Authentication Entities". This directive is required.
RootDNPwd
Specifies the directory manager's password. This directive is required.

Optional [slapd] Installation Directives

You may provide the following directives when you use silent installation with Directory Server:

Table 4.4 Optional [slapd] Installation Directives  

Directive
Description
AddSampleEntries
If set to Yes, this directive causes the airius.ldif sample directory to be loaded. Use this directive if you are installing the Directory Server for evaluation purposes and you do not already have an LDIF file to populate your directory with. Default is no.
AddOrgEntries
If set to Yes, this directive causes the new Directory Server instance to be created with a suggested directory structure and access control. If this directive is used and InstallLdifFile is also used, then this directive has no effect. Default is no.
InstallLdifFile
Causes the contents of the LDIF file to be used to populate your directory.
UseReplication
If set to Yes, either SetupConsumer or SetupSupplier must also be specified. Default is no.
SetupConsumer
Causes this server to be set up as a consumer server. Valid values are:
SetupSupplier
Causes this server to be set up as a supplier server. Valid values are:

Consumer Server [slapd] Installation Directives

The following tables show the directives you use if you specify the SetupConsumer directive.

If you are setting up a consumer server for use with supplier-initiated replication, use the following directives:

Table 4.5 Directives for SIR Consumer Server

Directive
Description
UpdateDN
Specifies the supplier DN for this server. That is, this is the distinguished name of the entry used to update this consumer server. Only entities binding to this server with this DN can write to a tree replicated from some other server.
UpdatePwd
Password corresponding to the supplier DN (update DN).

If you are setting up a consumer server for use with consumer-initiated replication, use the following directives:

Table 4.6 Directives for CIR Consumer Server  

Directive
Description
CIRHost
Specifies the hostname on which the supplier server resides. This directive is required if you are installing a CIR consumer.
CIRPort
Specifies the port number used for LDAP connections to the supplier server. This directive is required if you are installing a CIR consumer.
CIRSuffix
Specifies the distinguished name of the tree that is pulled from the supplier server. This directive is required if you are installing a CIR consumer.
CIRBindDN
Specifies the distinguished name that this consumer server will use when binding to the supplier server and obtaining updates. This distinguished name must have read, search, and compare privileges for the directory tree that the consumer is obtaining from the supplier, as well as for the supplier's changelog database. This directive is required if you are installing a CIR consumer.
CIRBindDNPW
Password for the CIRBindDN. This directive is required if you are installing a CIR consumer.
CIRSecurityOn
A value of On causes the consumer server to use an SSL connection when obtaining updates from the supplier server. Default is off.
CIRInterval
Specifies the interval between update attempts. Units are in minutes, default is 10 minutes. A value of 0 causes the consumer server to always stay in synch (there is no interval between update attempts).
CIRDays
Specifies the days of the week on which replication can begin. Values are an integer, 0-6, representing a day of the week. That is, 0=Sunday, 1=Monday, 2=Tuesday, and so forth. To specify multiple days of the week, enter each integer with no delimiter between them. Thus, to replicate on Sunday and Wednesday, enter CIRDays=03. To replicate every day of the week, either use CIRDays=0123456, or do not specify this directive.
CIRTimes
Specifies the range of time during which replication can begin. Specify times in 24 hour format. For example, CIRTimes = 0100-2300 allows replication to begin anytime between 1 a.m. and 11 p.m. To allow replication to begin at anytime during the day, use CIRTimes=0000-0000, or do not specify this directive.

Supplier Server [slapd] Installation Directives

The following tables show the directives you use if you specify the SetupSupplier directive.

Anytime you create a supplier server, you must configure a changelog database. Use the following directives for this purpose:

Table 4.7 Changelog Directives for Supplier Servers

Directive
Description
ChangelogDIR
Specifies the full path to the directory where your changelog database is stored. This parameter is required when you are configuring a supplier server.
ChangelogSuffix
Specifies the suffix for the changelog database. This parameter is required when you are configuring a supplier server.

Use the following directives to set up a supplier server for use with supplier-initiated replication:

Table 4.8 Directives for SIR Supplier Servers  

Directive
Description
SIRHost
Specifies the hostname of the consumer server to which this server will supply data.
SIRPort
Specifies the port number of the consumer server to which this server will supply data.
SIRSuffix
Specifies the distinguished name of the root point of the directory tree that you are supplying to the consumer server.
SIRBindDN
Specifies the bind DN to use when supplying entries to the consumer server. Correspond's to the consumer's supplier DN.
SIRBindDNPW
Specifies the password for the SIRBindDN.
SIRSecurityOn
A value of On causes the consumer server to use an SSL connection when sending updates to the consumer server. Default is off.
SIRDays
Specifies the days of the week on which replication can begin. Values are an integer, 0-6, representing a day of the week. That is, 0=Sunday, 1=Monday, 2=Tuesday, and so forth. To specify multiple days of the week, enter each integer with no delimiter between them. Thus, to replicate on Sunday and Wednesday, enter SIRDays=03. To replicate every day of the week, either use SIRDays=0123456, or do not specify this directive.
SIRTimes
Specifies the range of time during which replication can begin. Specify times in 24 hour format. For example, SIRTimes = 0100-2300 allows replication to begin anytime between 1 a.m. and 11 pm. To allow replication to begin at anytime during the day, use CIRTimes=0000-0000, or do not specify this directive.

Use the following directives to set up a supplier server for use with consumer-initiated replication:

Table 4.9 Directives for CIR Supplier Servers

Directive
Description
ConsumerDN
Specifies the distinguished name that a consumer server uses to pull data from this supplier server. Used only by CIR consumer servers. This distinguished name must have read, search, and compare privileges for the replicated tree as well as for the changelog database.
ConsumerPwd
Specifies the password for the Consumer DN.

[admin] Installation Directives

[admin] installation directives specify information of interest only to your Directory Server's Administration Server. That is, this is the installation information required for the Administration Server that is used to manage the Directory Server instance that you are currently installing.

The [admin] installation directives are:

Table 4.10 [admin] Installation Directives  

Directive
Description
Components
Specifies the admin components to be installed. The base components are:
SysUser
Unix only. Specifies the user that the Administration Server will run as. For default installations that use the default Netscape port numbers, this user must be root. Root is the default. For information on what users your servers should run as, see "Decide Which User and Group to Run Netscape Servers As (Unix only)"
Port
Specifies the port that the Administration Server will use. Note that the Administration Server's host name is given by the FullMachineName directive. For more information on FullMachineName, see Table 4.1.
ServerAdminID
Specifies the administration ID that can be used to access this Administration Server if the configuration directory is not responding. The default is to use the value specified by the ConfigDirectoryAdminID directive. See "Defining Authentication Entities" for information on this directive.
ServerAdminPwd
Specifies the password for ServerAdminID.
ServerIPAddress
Specifies the IP address that the Administration Server will listen to. Use this directive if you are installing on a multi-homed system and you do not want to use the first IP address for your Administration Server.

 

© Copyright 1999 Netscape Communications Corporation, All Rights Reserved.