# /usr/sbin/setup-ds-admin.pl
Run the setup-ds-admin.pl script as root.
Select y to accept the Red Hat licensing terms.
The dsktune utility runs. Select y to continue with the setup.
dsktune checks the available disk space, processor type, physical memory, and other system data and settings such as TCP/IP ports and file descriptor settings. If your system does not meet these basic Red Hat Directory Server requirements, dsktune returns a warning. dsktune warnings do not block the setup process; simply enter y to go to the next step.
Next, choose the setup type. Accept the default, option 2, to perform a typical setup.
Set the computer name of the machine on which the Directory Server is being configured. This defaults to the fully-qualified domain name (FQDN) for the host. For example:
Computer name [ldap.example.com]:
The Directory Server requires the fully-qualified domain name to set up the servers, as described in
Section 1.2.1, “Resolving the Fully-qualified Domain Name”. The setup script uses the system's
gethostname() function to obtain the hostname (such as
ldap) and the
/etc/resolv.conf file to identify the domain name (such as
example.com).
Therefore, if there are aliases in the /etc/hosts file that do not match the specified domains in the /etc/resolv.conf settings, the setup script cannot correctly generate the fully-qualified domain name as it is used by DNS, and the default options in the prompts are wrong.
The hostname is very important. It is used generate the Directory Server instance name, the admin domain, and the base suffix, among others. If you are using SSL/TLS or Kerberos, the computer name must be the exact name that clients use to connect to the system. If you will use DNS, make sure the name resolves to a valid IP address and that IP address resolves back to this name.
Set the user and group as which the Directory Server process will run. The default is nobody:nobody. For example:
System User [nobody]:
System Group [nobody]:
The next step allows you to register your Directory Server with an existing Directory Server instance, called the Configuration Directory Server. This registers the new instance so it can be managed by the Console. If this is the first Directory Server instance set up on your network, it is not possible to register it with another directory. Select n to set up this Directory Server as a Configuration Directory Server and move to the next typical install step, setting up the administrator user.
To register the Directory Server instance with an existing Configuration Directory Server, select yes. This continues with the registration process rather than the regular typical setup process.
Registering a new instance with a Configuration Directory Server requires you to supply information about the Configuration Directory Server:
The Configuration Directory Server URL, such as ldap://ldap.example.com:389/o=NetscapeRoot
To use TLS/SSL, set the protocol as ldaps:// instead of ldap:// For LDAPS, use the secure port (636) instead of the standard port (389), and provide a CA certificate.
The Configuration Directory Server administrator's user ID; by default, this is admin.
The administrator user's password.
The Configuration Directory Server Admin domain, such as example.com.
The CA certificate to authenticate to the Configuration Directory Server. This is only required if the Directory Server instance will connect to the Configuration Directory Server over LDAPS. This should be the full path and filename the CA certificate in PEM/ASCII format.
This information is supplied in place of creating an admin user and domain for the new Directory Server, steps
8,
9, and
10.
Set the administrator username. The default is admin.
Set the administrator password and confirm it.
Set the administration domain. This defaults to the host's domain. For example:
Administration Domain [example.com]:
Enter the Directory Server port number. The default is 389, but if that port is in use, the setup program supplies a randomly generated one.
Directory server network port [30860]: 1025
Enter the Directory Server identifier; this defaults to the hostname.
Directory server identifier [example]:
The server identifier must not contain a period (.) or space character.
Enter the directory suffix. This defaults to dc=domain name. For example:
Suffix [dc=example,dc=com]:
Set the Directory Manager username. The default is cn=Directory Manager.
Set the Directory Manager password and confirm it.
Enter the Admin Server port number. The default is 9830, but if that port is in use, the setup program supplies a randomly generated one.
Administration port [9830]:
The last screen asks if you are ready to set up your servers. Select yes.
Are you ready to set up your servers? [yes]:
Creating directory server . . .
Your new DS instance 'example2' was successfully created.
Creating the configuration directory server . . .
Beginning Admin Server reconfiguration . . .
Creating Admin Server files and directories . . .
Updating adm.conf . . .
Updating admpw . . .
Registering admin server with the configuration directory server . . .
Updating adm.conf with information from configuration directory server . . .
Updating the configuration for the httpd engine . . .
Restarting admin server . . .
The admin server was successfully started.
Admin server was successfully reconfigured and started.
Exiting . . .
Log file is '/tmp/setupulSykp.log'