System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP)

Part IV Configuring Sun ONE Directory Server

The following chapter discusses how to configure SunTM ONE Directory Server (formerly iPlanetTM Directory Server).

Chapter 11 Sun ONE Directory Server Configuration

This chapter discusses how to configure Sun ONE Directory Server 5.1 (formerly iPlanet Directory Server 5.1). You must complete the procedures contained in this chapter before you can go on to configure Sun ONE Directory Server for use with Solaris LDAP naming services clients.


Note –

If you are using a directory server other than the Sun ONE Directory Server, skip this chapter. See Generic Directory Server Requirements for a list of basic requirements for other directory servers when used in conjunction with Solaris LDAP naming service clients.


Sun ONE Directory Server documentation is available on Sun's docs.sun.com web site.

Refer to the following manuals for in-depth information regarding Sun ONE Directory Server 5.1 (formerly iPlanet Directory Server 5.1):

This chapter covers the following topics.

Preparing for Configuration

Before you begin configuring Sun ONE Directory Server, you should have an understanding of the various components and the design and configuration decisions you need to make.

To help you configure Sun ONE Directory Server, you should be familiar with the concepts contained in the following sections.

The Deployment Guide for the Sun ONE Directory Server contains basic directory concepts as well as guidelines to help you design and successfully deploy your directory service.

Configuration Components

Sun ONE Directory Server contains the following software components, which are installed by default when you install the entire Solaris disk suite.

Configuration Choices

During Directory Server configuration, you are prompted for basic information. Decide how you are going to configure these basic parameters before you begin the configuration process. You are prompted for the following information, depending on the type of configuration that you decide to perform.

Choosing Unique Port Numbers

Port numbers can be any number from 1 to 65535. Keep the following in mind when choosing a port number for your Sun ONE Directory Server.


Note –

If the LDAP naming service clients are using SSL encryption, you must use the default port numbers 389 and 636, so that the server runs as root. See Transport Layer Security (TLS) for more information.


For information on how to set up LDAP over SSL (LDAPS) for the Sun ONE Directory Server, see the administration guide for the version of Sun ONE Directory Server that you are using.

Choosing User and Group

For security reasons, it is always best to run production servers with normal user privileges. That is, you do not want to run Directory Server with root privileges. However, you will have to run Directory Server with root privileges if you are using the default Directory Server ports. If Directory Server is to be started by Administration Server, Administration Server must run either as root or as the same user as Sun ONE Directory Server.

You must therefore decide what user accounts you will use for the following purposes.

You should use a common group for all Sun ONE servers, such as gid servers, to ensure that files can be shared between servers when necessary.

Before you can install Sun ONE Directory Server and Administration Server, you must make sure that the user and group accounts you use exist on your system.

Defining Authentication Entities

As you configure Sun ONE Directory Server and Administration Server, you will be asked for various user names, distinguished names (DN), and passwords. This list of login and bind entities will differ depending on the type of configuration that you are performing.

Choosing Your Directory Suffix

A directory suffix is the directory entry that represents the first entry in a directory tree. You need at least one directory suffix for the tree that contains your organization's data. It is common practice to select a directory suffix that corresponds to the DNS host name used by your organization. For example, if your organization uses the DNS name example.com, then select a suffix of dc=example,dc=com.

For more information on planning the suffixes for your directory service, see the deployment guide for the version of Sun ONE Directory Server that you are using.

Choosing the Location of the Configuration Directory

Many Sun ONE servers, including Sun ONE Directory Server, use an instance of Sun ONE Directory Server to store configuration information. This information is stored in the o=NetscapeRoot directory tree. This directory tree does not need to be held on the same Sun ONE Directory Server as your directory data. Your configuration directory is the Sun ONE Directory Server that contains the o=NetscapeRoot.

If you are installing Sun ONE Directory Server only to support other Sun ONE servers, then that Sun ONE Directory Server is your configuration directory. If you are installing Sun ONE Directory Server to use as part of a general directory service, then you will have multiple instances of Sun ONE Directory Server installed in your organization and you must decide which one will host the configuration directory tree, o=NetscapeRoot. You must make this decision before you install any Sun ONE servers (including Sun ONE Directory Server).

For ease of upgrades, you should use a Sun ONE Directory Server instance that is dedicated to supporting the o=NetscapeRoot tree; this server instance should perform no other function with regard to managing your enterprise's directory data. Also, do not use port 389 for this server instance because doing so could prevent you from installing a Sun ONE Directory Server on that host that can be used for management of your organization's directory data.

Because the configuration directory normally experiences very little traffic, you can allow its server instance to coexist on a machine with another more heavily loaded Sun ONE Directory Server instance. However, for very large sites that are installing a large number of Sun ONE servers, you may want to dedicate a low-end machine to the configuration directory so as to not hurt the performance of production servers. Sun ONE server configurations result in write activities to the configuration directory. For large enough sites, this write activity could result in a short-term performance hit to your other directory activities.

Also, as with any directory configuration, consider replicating the configuration directory to increase availability and reliability. For information about using replication to increase directory availability, refer to the deployment guide for the version of Sun ONE Directory Server that you are using.


Caution – Caution –

If the configuration directory tree is corrupted, you might need to reinstall all other Sun ONE servers that are registered in that configuration directory. Remember the following guidelines when dealing with the configuration directory.


Choosing the Location of the User Directory

Just as the configuration directory is the Directory Server instance used for server administration, the user directory is the Directory Server instance containing entries for users and groups in your organization. You cannot install a user directory until you have installed a configuration directory somewhere on your network.

The configuration directory can reside on the same Directory Server instance as the user directory. However, for most directory configurations, the user directory and the configuration directory should be two separate server instances. These server instances can be installed on the same machine. For best results, however, consider placing the configuration directory on a separate machine.

Between your user directory and your configuration directory, it is your user directory that will receive the overwhelming percentage of the directory traffic. For this reason, you should give the user directory the greatest computing resources. Because the configuration directory should receive very little traffic, it can be installed on a machine with very low-end resources.

Also, you should use the default directory ports (389 and 636) for the user directory. If your configuration directory is managed by a server instance dedicated to that purpose, you should use some non-standard port for the configuration directory.

Choosing the Administration Domain

The administration domain allows you to logically group Sun ONE servers together so that you can more easily distribute server administrative tasks. A common scenario is for two divisions in a company to want control of their individual Sun ONE servers. However, you may still want some centralized control of all the servers in your enterprise. Administration domains allow you to meet these conflicting goals.

Administration domains have the following qualities.

For many configurations, you can have just one administration domain. In this case, choose a name that is representative of your organization. For other configurations, you may want different domains because of the demands at your site. In the latter case, try to name your administration domains after the organizations that control the servers in that domain.

For example, if you are an ISP with three customers for whom you are installing and managing Sun ONE servers, create three administration domains each named after a different customer.

Configuration Process Overview

The configuration process involves the following steps:

  1. Plan your directory service. By planning your directory tree in advance, you can design a service that is easy to manage and scale as your organization grows. For guidance on planning your directory service, refer to the deployment guide for the version of Sun ONE Directory Server that you are using.

  2. Select the Sun ONE Directory Server configuration method you prefer to use. See Selecting a Directory Server Configuration Method for a list of Sun ONE Directory Server configuration methods.

  3. Configure Sun ONE Directory Server as described in this chapter.

  4. (Optional) Set up the Sun ONE Administration Server and Sun ONE Server Console. For Sun ONE Directory Server 5.1, Sun ONE Administration Server and Sun ONE Server Console are set up during the directory server installation process.

  5. Create the directory suffixes and databases. You do not have to populate your directory now. You should, however, create the basic structure for your tree, including all major roots and branch points. For information about the different methods of creating a directory entry, refer to the administration guide for the version of Sun ONE Directory Server that you are using.

  6. Create additional Sun ONE Directory Server instances and set up replication agreements between the instances to ensure availability of your data. For information about creating additional Directory Server instances and setting up replication agreements, refer to the administration guide for the version of Sun ONE Directory Server that you are using.

Selecting a Directory Server Configuration Method

You can configure Sun ONE Directory Server software using one of the three different configuration methods supported by the configuration program.

Configuring the Servers

By preparing information in advance, you can complete the configuration process more quickly. Before configuring the servers, consider creating a worksheet to hold the installation information, as summarized for a typical installation in Table 11–1.

Sun ONE Directory Server Configuration Worksheet

Table 11–1 Basic Information Required During Typical Configuration

Description 

Examples 

Your Answers... 

Administration domain 

example.com

  

Administration Server port number 

5201

  

Directory Administrator ID 

admin

  

Directory Administrator password 

$3kReT4wD

  

Directory Manager DN [All DNs must be entered in UTF-8 encoding. Refer to RFC 2253 for more information. Older encodings such as ISO-8859-1 are not supported.] (super user for the directory)

cn=Directory Manager

  

Directory Manager password (at least 8 characters) 

#$8Yk$-%^

  

Directory Server port number (1-65535, inclusive) [The Internet Assigned Numbers Authority assigns port numbers less than 1024. Install as super user to use a port less than 1024.]

389 (default LDAP)

636 (default LDAP/SSL)

  

Fully qualified host distinguished name 

dirserv.example.com

  

(Optional) Configuration directory host, port, bind ID and password if using an existing configuration directory 

 

config.example.com

389

admin

$3kReT4wD

  

(Optional) User directory host, port, bind DN, password, and suffix if using an existing user directory 

usergroup.example.com

389

cn=Directory Manager

#$8Yk$-%^

dc=example, dc=com

  

Server ID (No periods or spaces allowed) 

dirserv

  

Server suffix (At least one to hold directory content) 

dc=example,dc=com

  

Server group ID [You must create the appropriate user and group.]

Use the name, rather than the group ID number. 

servers

  

Server user ID 

dsuser

  

Configuration Process for Sun ONE Directory Server 5.1

You can choose between the following configuration methods for Sun ONE Directory Server 5.1:

See Selecting a Directory Server Configuration Method for details about each configuration method.

How to Configure Sun ONE Directory Server 5.1 Using Express Configuration

Use express configuration if you are installing Sun ONE Directory Server 5.1 to evaluate or test the product. Because express configuration does not offer you the choice of selecting your server port number or your directory suffix, you should not use it for production configurations. To perform an express configuration, do the following.

  1. Become superuser.

  2. Run the Sun ONE Directory Server 5.1 program by typing the following.


    # /usr/sbin/directoryserver setup
    
  3. When you are prompted for what you want to install, hit enter for [the default] Sun ONE servers.

  4. When you are prompted for the type of configuration, choose Express.

  5. For the user and group to run the servers as, enter the identity that you want this server to run as.

  6. For Configuration Directory Administrator ID and password, enter the name and password that you will log in as when you want to authenticate to the console with full privileges. Think of this as the root or superuser identity for the Sun ONE Server Console.

The server is then minimally configured, and started. You are told what host and port number on which the Administration Server is listening.

Note the following about your new Sun ONE Directory Server 5.1 configuration.

Do not modify the contents of the directory under the o=NetscapeRoot suffix. Either create data under the first suffix, or create a new suffix to be used for this purpose. For details on how to create new suffixes for your Sun ONE Directory Server 5.1, see the Sun ONE Directory Server 5.1 Administrator's Guide.

How to Configure Sun ONE Directory Server 5.1 Using a Typical Configuration

Most first time configurations of Sun ONE Directory Server 5.1 can be performed using the Typical option of the setup program.

  1. Become superuser.

  2. Run the Sun ONE Directory Server 5.1 program.


    # /usr/sbin/directoryserver setup
    
  3. When you are prompted for what you want to install, press Enter for [the default] Sun ONE Servers.

  4. When you are prompted for Directory Suite and Administration Services, press Enter to select all [the default].

  5. Press Enter to select all Directory Suite components.

  6. Press Enter to select all Administration components.

  7. When prompted for the hostname, select the default [the host] or enter an alternative fully qualified domain name.


    Caution – Caution –

    Note that the default hostname may be incorrect if the installer cannot locate a DNS name for your system. For example, you might not have a DNS name if your system uses NIS. The hostname must be a fully qualified host and domain name. If the default hostname is not a fully qualified host and domain name, configuration will fail.


  8. The setup program then asks you for the System User and the System Group names. Enter the identity under which you want the servers to run.

  9. For the configuration directory, select the default if this directory will host your o=NetscapeRoot tree. Otherwise, enter Yes. You will then be asked for the contact information for the configuration directory.

    If the server you are currently installing is not the configuration directory, then the configuration directory must exist before you can continue this configuration.

  10. The setup program then asks if the server you are currently installing will be the one for your user data. For most cases, you can select the default. However, if you intend this server instance to be used as a configuration directory only, then you should enter Yes.

  11. For the Sun ONE Directory Server 5.1 port, select the default (389) unless you already have another application using that port.

  12. For the Sun ONE Directory Server 5.1 Identifier, enter a unique value (normally the default is sufficient).

    This value is used as part of the name of the directory in which the Sun ONE Directory Server 5.1 instance is installed. For example, if your machine's host name is phonebook, then this name is the default and selecting it will cause the Sun ONE Directory Server 5.1 instance to be installed into a directory labeled slapd-phonebook.


    Caution – Caution –

    The Sun ONE Directory Server 5.1 identifier must not contain a period. For example, example.server.com is not a valid server identifier name.


  13. For Configuration Directory Administrator ID and password, enter the name and password that you will log in as when you want to authenticate to the console with full privileges.

  14. For a directory suffix, enter a distinguished name meaningful to your enterprise.

    This string is used to form the name of all your organization's directory entries. Therefore, pick a name that is representative of your organization. It is recommended that you pick a suffix that corresponds to your internet DNS name.

    For example, if your organization uses the DNS name example.com, then enter dc=example,dc=com here.

  15. For Directory Manager DN, enter the distinguished name that you will use when managing the contents of your directory with unlimited privileges.


    Note –

    Any Distinguished Names must be entered in the UTF-8 character set encoding. Older encodings such as ISO-8859-1 are not supported.


    In former releases of Sun ONE Directory Server 5.1, the Directory Manager was known as the root DN. This is the entry that you bind to the directory as when you want access control to be ignored. This distinguished name can be short and does not have to conform to any suffix configured for your directory. However, it should not correspond to an actual entry stored in your directory.

  16. For the Directory Manager password, enter a value that is at least 8 characters long.

  17. For Administration Domain, enter the domain that you want this server to belong to.

    The name you enter should be a unique string that is descriptive of the organization responsible for administering the domain.

  18. For the administration port number, enter a value that is not in use (for example, you might want to use the value 5100 to indicate Sun ONE Directory Server 5.1). Be sure to record this value somewhere you can remember.

  19. For the user you want to run Administration Server as, enter root, the default.

    The server is then minimally configured, and started. You are told what host and port number Administration Server is listening on. The server is configured to use the following suffixes.

    • The suffix that you configured

    • o=NetscapeRoot

    Do not modify the contents of the directory under the o=NetscapeRoot suffix. Either create data under the first suffix, or create a new suffix to be used for this purpose. For details on how to create new suffixes for your Sun ONE Directory Server 5.1, see the Sun ONE Directory Server 5.1 Administrator's Guide.