Skip Headers
Oracle® Fusion Middleware Installation Guide for Oracle Unified Directory
11g Release 2 (11.1.2)

Part Number E23737-02
Go to Documentation Home
Home
Go to Table of Contents
Contents
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

3 Setting Up the Directory Server

This chapter describes how to set up a directory server instance, by using either the graphical user interface (GUI) or the command line interface. The topics in this chapter assume that you have already installed the software, as described in Chapter 2, "Installing the Software".

You can set up the directory server in two ways:

This chapter covers the following topics:

3.1 Setting up the Directory Server by Using the GUI

The following procedure presents a step by step installation using the oud-setup graphical interface.

  1. When you have installed the software, change to the ORACLE_HOME subdirectory.

    (UNIX, Linux)  $ cd OUD-base-location/ORACLE_HOME
    (Windows)      C:\> cd OUD-base-location\ORACLE_HOME
    
  2. Ensure that your JAVA_HOME environment variable is set to a supported JVM installation (at least Java 1.6).

  3. Run the oud-setup command to configure the directory server installation.

    (UNIX, Linux)  $ oud-setup
    (Windows)      C:\OUD-base-location\ORACLE_HOME> oud-setup.bat
    

    The utility launches the graphical installer and creates the Oracle Unified Directory instance in OUD-base-location/instance-dir.

    The default instance directory name is asinst_1, with subsequent instances on the same server named asinst_2, asinst_3, and so on. To specify a different instance name, set the INSTANCE_NAME environment variable before you run the setup, for example:

    $ export INSTANCE_NAME=my-oud-instance
    

    The instance is created directly under OUD-base-location by default. To change the instance path, include the path relative to OUD-base-location when you set the INSTANCE_NAME variable. For example:

    $ export INSTANCE_NAME=../../local/my-oud-instance
    
  4. On the Welcome panel, click Next.

  5. On the Server Settings panel, enter the following information:

    1. Host Name. Enter the directory server's host name or IP address.

      The default is the local host name.

    2. LDAP Listener Port. Enter the LDAP port for the directory server.

      The default port that is proposed is the first available port that ends with 389. On UNIX platforms, if you run the installer as a non-root user, the default is 1389, if available.

    3. Administration Connector Port. Enter the port that will be used for administration traffic.

      The default administration port is 4444. For more information, see Managing Administration Traffic to the Server in Oracle Fusion Middleware Administrator's Guide for Oracle Unified Directory.

    4. LDAP Secure Access. If you want to configure SSL, StartTLS, or both, click Configure.

      Complete the following information:

      SSL Access. Select Enable SSL to indicate that the LDAPS (that is, LDAP over SSL) listener should be enabled. Enter the port number on which the directory server listens for connections.

      The default secure port that is proposed is the first available port that ends with 636. On UNIX platforms, if you run the installer as a non-root user, the default secure port is 1636, if available.

      StartTLS Access. Click Enable StartTLS for LDAP to specify that the LDAP connection handler should allow clients to use the StartTLS extended operation to initiate secure communication over an otherwise insecure connection.

      Certificate. Select one of the following radio buttons to obtain the certificate that the server should use for SSL, StartTLS, or both:

      Generate Self-Signed Certificate generates a self-signed certificate that can be used to secure the communication. While this is convenient for testing purposes, many clients will not trust the certificate by default, and you might need to configure it manually.

      Use an Existing Certificate uses a certificate in an existing JKS keystore, a PKCS #12 file, or a PKCS #11 token. For more information about obtaining certificates, see Configuring Key Manager Providers in Oracle Fusion Middleware Administrator's Guide for Oracle Unified Directory.

      For production servers, select Use an Existing Certificate, and then select the Keystore Type. Enter the Keystore Path, and Keystore PIN if necessary.

      If more than one certificate is defined in the specified key store, you are asked to select one of the certificates from a drop down menu.

      Click OK to continue.

    5. Root User DN. Enter the Root User DN, or keep the default, cn=Directory Manager.

    6. Password. Enter the root user bind password.

    7. Password (confirm): Retype the root user bind password.

    8. Click Next to continue.

  6. On the Topology Options panel, select one of the following:

    1. This will be a stand-alone server.

    2. This server will be part of a replication topology.

      For instructions on setting up a replicated topology, see Section 3.3, "Setting Up Replication During Installation".

  7. Click Next to Continue.

  8. On the Directory Data panel, specify how to load data into your directory:

    1. Directory Base DN. Enter the base DN for your directory.

      The default Base DN is dc=example,dc=com.

    2. Directory Data. Select one of the following data options:

      Only Create Base Entry creates an entry with the base DN specified previously.

      Leave Database Empty sets up a database but does not populate any entries.

      Import Data from LDIF File imports LDIF data from the file specified in the Path field.

      Import Automatically-Generated Sample Data generates the number of sample entries specified in the Number of User Entries field.

  9. On the Oracle Components Integration panel, select one of the following:

    • Enable for EUS if you want this server instance to be used as a datastore for Oracle Enterprise User Security.

      Note that you can only enable a server instance for EUS if you have enabled SSL access (see Step 5 d of this procedure).

      When you enable a server instance for EUS, the following naming contexts are created on the instance:

      cn=oraclecontext

      cn=oracleschemaversion

      cn=subschemasubentry

    • Enable for Fusion Applications if you want this server to be used as an identity store for Oracle Fusion Applications.

      When you enable a server instance for Oracle Fusion Applications, a workflow element named Fa0 (cn=Fa0,cn=Workflow elements,cn=config) is created and enabled.

  10. Click Next to continue.

  11. On the Runtime options panel, click Change to configure any specific JVM setting, or click Next to run the server with the default JVM settings.

    For more information, see Section 7.2, "Configuring the Java Runtime Settings During Installation".

  12. On the Review panel, review your configuration.

    Select Start Server when Configuration has Completed to start the server after the directory server has been configured. On Windows systems, select Start Server as a Windows service, if desired.

    To display the equivalent command-line installation, select Show Equivalent Command-Line from the drop down menu at the top of the panel. This option displays the non-interactive commands that are run to set up the server with the specified configuration, and can be useful for scripting purposes.

  13. Click Finish.

  14. Click Close.

  15. Test whether the directory server has been set up and started successfully by searching an entry in the directory. For example:

    On UNIX systems:

    instance-dir/oud/bin/ldapsearch -h localhost -p 1389 \
      -D "cn=directory manager" -w my-password -b "dc=example,dc=com" \
      "(objectclass=*)"
    

    On Windows systems:

    instance-dir\oud\bat\ldapsearch.bat -h localhost -p 1389 \
      -D "cn=directory manager" -w my-password -b "dc=example,dc=com" \
      "(objectclass=*)"
    

3.2 Setting Up the Directory Server by Using the CLI

Running oud-setup with the --cli option launches the command-line setup, as described in the following procedure.

  1. When you have installed the software, change to the ORACLE_HOME subdirectory.

    (UNIX, Linux)  $ cd OUD-base-location/ORACLE_HOME
    (Windows)      C:\> cd OUD-base-location\ORACLE_HOME
    
  2. Ensure that your JAVA_HOME environment variable is set to a supported JVM installation.

  3. Type oud-setup with the --cli option to launch the install in interactive mode.

    (UNIX, Linux)  $ oud-setup --cli
    (Windows)      C:\> oud-setup.bat -cli
    

    The utility launches the command-line installer and creates the Oracle Unified Directory instance in OUD-base-location/instance-dir.

    The default instance directory name is asinst_1, with subsequent instances on the same server named asinst_2, asinst_3, and so on. To specify a different instance name, set the INSTANCE_NAME environment variable before you run the setup, for example:

    $ export INSTANCE_NAME=my-oud-instance
    

    The instance is created directly under OUD-base-location by default. To change the instance path, include the path relative to OUD-base-location when you set the INSTANCE_NAME variable. For example:

    $ export INSTANCE_NAME=../../local/my-oud-instance
    
  4. Enter the root user DN, or press Enter or Return to accept the default (cn=Directory Manager).

  5. Provide a password for the root user and re-enter the password to confirm it.

  6. Enter the LDAP port number for your directory server, or press Enter or Return to accept the default.

    If you run the installer as the root user, the default port is 389. If you run the installer as a non-root user, the default port is 1389.

  7. Enter the port number that will be used for administration traffic.

    The default administration port is 4444. For more information, see Managing Administration Traffic to the Server in Oracle Fusion Middleware Administrator's Guide for Oracle Unified Directory.

  8. Press Enter or Return to create base DNs in the server, or Enter No if you do not want to create base DNs.

  9. Enter the base DN for the directory data, or press Enter or Return to accept the default.

    The default Base DN is dc=example,dc=com.

  10. Select one of the following options to set up the directory data:

    Only create the base entry creates an entry with the base DN specified previously.

    Leave the database empty sets up a database but does not populate any entries.

    Import data from an LDIF file imports LDIF data from a file, specified in the following step.

    Load automatically-generated sample data generates the number of sample entries specified in the following step.

  11. Type yes if you want to enable SSL and enter the port for LDAPS clients.

    If you run the installer as the root user, the default secure port is 636. If you run the installer as a non-root user, the default secure port is 1636.

  12. Type yes if you want to enable StartTLS.

  13. If you enabled SSL or StartTLS in the previous steps, select the certificate type.

  14. Type yes if you want to prepare the server for EUS. This will enable the server instance to be used as a datastore for Oracle Enterprise User Security.

    Note that you can only prepare the server for EUS if you have enabled SSL access to the server.

    When you enable a server instance for EUS, the following naming contexts are created on the instance:

    • cn=oraclecontext

    • cn=oracleschemaversion

    • cn=subschemasubentry

  15. Type yes if you want this server to be used as an identity store for Oracle Fusion Applications.

    When you enable a server instance for Oracle Fusion Applications, a workflow element named Fa0 (cn=Fa0,cn=Workflow elements,cn=config) is created and enabled.

  16. Type yes or press Enter or Return to accept the default to start the server after the configuration has completed.

  17. Confirm your configuration, and enter 1 or press Enter or Return to accept the default to complete the configuration process.

    To display the equivalent non-interactive commands, enter 3. This option displays the commands that are run to set up the server with the specified configuration, and can be useful for scripting purposes.

  18. Test whether the directory server has been set up and started successfully by searching an entry in the directory. For example:

    On UNIX systems:

    instance-dir/oud/bin/ldapsearch -h localhost -p 1389 \
      -D "cn=directory manager" -w my-password -b "dc=example,dc=com" \
      "(objectclass=*)"
    

    On Windows systems:

    instance-dir\oud\bat\ldapsearch.bat -h localhost -p 1389 \
      -D "cn=directory manager" -w my-password -b "dc=example,dc=com" \
      "(objectclass=*)"
    

3.3 Setting Up Replication During Installation

If you install the directory server by using the GUI, you can set up replication as part of the installation. If you install the server by using the command-line interface, you must set up replication by using the dsreplication command after the server is installed. For more information, see Configuring Data Replication With dsreplication in Oracle Fusion Middleware Administrator's Guide for Oracle Unified Directory.

  1. For the first directory server in your replication topology, follow the instructions in Section 3.1, "Setting up the Directory Server by Using the GUI".

  2. On the Topologies screen, do the following:

    1. Select This server will be part of a replication topology.

    2. Enter the replication port number or accept the default port 8989.

      The replication port must be an available port on the server, and must therefore be different for each directory server in a topology if all of them are running on the same host.

    3. Select Configure as Secure if you want to use encrypted communication when connecting to the replication port on the first server.

      Record the host name, and administration port, for this first directory server. You will need this information when you configure the second directory server.

  3. Complete the configuration of the first server.

  4. For the second directory server in your replication topology, follow the instructions in Section 3.1, "Setting up the Directory Server by Using the GUI".

  5. On the Topologies screen, do the following:

    1. Select This server will be part of a replication topology.

    2. Enter the replication port number for this directory server.

      The replication port must be different from the replication port of the first directory server if both servers are running on the same host.

    3. Select There is already a server in the topology.

      1. Host Name. Enter the Host Name for the first directory server.

      2. Port. Enter the administration port for the first directory server.

      3. Admin User. Enter the bind DN for the first directory user, or accept the default.

      4. Admin Password. Enter the bind password for the Admin user.

  6. On the Global Administrator screen, provide the following information:

    • The UID for the new global administrator.

    • The password for the new global administrator.

    • Confirm the password for the new global administrator.

  7. On the Data Replication screen, select one of the following options, and click Next.

    1. Create first instance of base DN to be replicated.

    2. Create local instance of existing base DNs and configure replication. Click the base DN for the first directory server.

  8. Review the configuration settings for the second server, and click Finish.

  9. Repeat these procedures to set up additional servers in the replication topology.

    When you have defined the Global Administrator, the entry with the DN and the password that you provided in step 5c must be defined on all servers in the topology.