Netscape logo Administrator's Guide
Netscape Directory Server

Previous      Contents      Index      DocHome      Next     

Chapter 1   Introduction to Netscape Directory Server


Netscape Directory Server (Directory Server) product includes a Directory Server, an Administration Server to manage multiple server instances, and Netscape Console to manage server instances through a graphical interface. This chapter provides overview information about the Directory Server, and the most basic tasks you need to start administering a directory service.

It includes the following sections:

Overview of Directory Server Management


The Directory Server is a robust, scalable server designed to manage an enterprise-wide directory of users and resources. It is based on an open-systems server protocol called the Lightweight Directory Access Protocol (LDAP). The Directory Server runs as the ns-slapd process or service on your machine. The server manages the directory databases and responds to client requests.

You perform most Directory Server administrative tasks through the Netscape Administration Server, a second server that Netscape provides to help you manage Directory Server (and all other Netscape servers). For Directory Server, you use a part of the Netscape Administration Server called Netscape Console. The Directory Server Console is a part of Netscape Console designed specifically for use with Directory Server.

You can perform most Directory Server administrative tasks from the Directory Server Console. You can also perform administrative tasks manually by editing the configuration files or by using command-line utilities. For more information about the Netscape Console see Managing Servers with Netscape Console.

Using the Directory Server Console


The Directory Server Console is an integral part of the Netscape Console. You start the Directory Server Console from Netscape Console, as described below.

Starting Directory Server Console

  1. Check that the Directory Server daemon, slapd-serverID is running. If it is not, as root user, enter the following command to start it:
  2. serverRoot/slapd-serverID/start-slapd

  3. Check that the Administration Server daemon, admin-serv is running. If it is not, as root user, enter the following command to start it:
  4. serverRoot/start-admin

  5. Start Netscape Console by entering the following command:
  6. serverRoot/startconsole

    The Console login window is displayed. Or, if your configuration directory (the directory that contains the o=NetscapeRoot suffix) is stored in a separate instance of Directory Server, a window is displayed requesting the administrator user id, password, and the URL of the Netscape Administration Server for that Directory Server.
     
  7. Log in using the bind DN and password of a user with sufficient access permissions for the operations you want to perform.
  8. For example, use cn=Directory Manager, and the appropriate password. The Netscape Console is displayed.
     
  9. Navigate through the tree in the left-hand pane to find the machine hosting your Directory Server, and click on its name or icon to display its general properties.
  10. To edit the name and description of your Directory Server, click the Edit button. Enter the new name and description in the text boxes. The name will appear in the tree on the left. Click OK to set the new name and description.
  11. Double-click the name of your Directory Server in the tree or click the Open button to display the Directory Server Console.

Copying Entry DNs to the Clipboard

Using the Directory tab, you can copy the DN of an entry to the clipboard.

To do this:

  1. In the Directory Server Console, select the Directory tab.
  2. Browse through the tree until the entry whose DN you want to copy is displayed.
  3. Select the entry in the tree and then select Edit >Copy DN, or press Shift+Ctrl+C.

Configuring the Directory Manager


The Directory Manager is the privileged database administrator, comparable to the root user in UNIX. Access control does not apply to the entry you define as Directory Manager. You initially defined this entry during installation. The default is cn=Directory Manager.

The password for this user is defined in the nsslapd-rootdn attribute.

To change the Directory Manager DN and password, and the encryption scheme used for this password:

  1. Log in to the Directory Console as Directory Manager.
  2. If you are already logged in to the Console, see "Binding to the Directory From Netscape Console" for instructions on how to log in as a different user.
     
  3. In the Directory Server Console, select the Configuration tab and then select the top entry in the navigation tree in the left pane.
  4. Select the Manager tab in the right pane.
  5. Enter the new distinguished name for the Directory Manager in the Root DN field.
  6. The default value is cn=Directory Manager.
     
  7. From the Manager Password Encryption pull-down menu, select the storage scheme you want the server to use to store the password for Directory Manager.
  8. Enter the new password and confirm it using the text fields provided.
  9. Click Save.

Binding to the Directory From Netscape Console


When you create or manage entries from the Directory Server Console, and when you first access the Netscape Console, you are given the option to log in by providing a bind DN and a password. This option lets you indicate who is accessing the directory tree. This determines the access permissions granted to you, and whether you can perform the requested operation.

Changing Login Identity

You can log in with the Directory Manager DN when you first start the Netscape Console. At any time, you can choose to log in as a different user, without having to stop and restart the Console.

To change your login in Netscape Console:

  1. In the Directory Server Console, select the Tasks tab.
  2. Click "Log on to the Directory Server as a New User."
  3. A login dialog box appears.
     
  4. Enter the new DN and password and click OK.
  5. Enter the full distinguished name of the entry with which you want to bind to the server. For example, if you want to bind as the Directory Manager, then enter the following in the Distinguished Name text box:
    cn=Directory Manager
     

For more information about the Directory Manager DN and password, refer to "Configuring the Directory Manager".

Viewing the Current Bind DN From the Console

You can view the bind DN you used to log in to the Directory Server Console by clicking the login icon in the lower-left corner of the display. The current bind DN appears next to the login icon as shown here:

Figure 1-1    Viewing the Bind DN

Starting and Stopping the Directory Server


If you are not using Secure Sockets Layer (SSL), you can start and stop the Directory Server using the methods listed here. If you are using SSL, see "Starting the Server with SSL Enabled".


Note  

On UNIX systems, rebooting the system does not automatically start the slapd process. This is because the directory does not automatically create startup or run command (rc) scripts. Check your operating system documentation for details on adding these scripts. On Windows, a user can shut down the Directory Server from the console. Care should be taken to restrict console access to computers running Directory Servers.




Starting/Stopping the Server From the Console

  1. Start the Directory Server Console.
  2. For instructions, refer to "Starting Directory Server Console".
     
  3. In the Tasks tab, click "Start the Directory Server" or "Stop the Directory Server" as appropriate.

When you successfully start or stop your Directory Server from the Directory Server Console, the server displays a message box stating either that the server started or has shut down.

Alternatively, if you are using a Windows machine:

  1. Select Start > Settings > Control Panel from the desktop.
  2. Double-click the Services icon.
  3. Scroll through the list of services and select the Netscape Directory Server.
  4. The service name is Netscape Directory Server version (serverID), where version is the version number and serverID is the identifier you specified for the server when you installed it.
     
  5. Start or stop the service:

Starting/Stopping the Server From the Command Line

Use one of the following scripts:

serverRoot/slapd-serverID/start-slapd

or

serverRoot/slapd-serverID/stop-slapd

where serverID is the identifier you specified for the server when you installed it.

On UNIX, both of these scripts must run with the same UID and GID as the Directory Server. For example, if the Directory Server runs as nobody, you must run the start-slapd and stop-slapd utilities as nobody.

Configuring LDAP Parameters


You can view and change the parameters relevant to the server's network and LDAP settings through the Directory Server Console. This section provides information on:

For information on schema checking, see Chapter 9 "Extending the Directory Schema."

Changing Directory Server Port Numbers

You can modify the port or secure port number of your user Directory Server using the Directory Server Console or by changing the value of the nsslapd-port attribute under the cn=config entry.

If you want to modify the port or secure port for a Directory Server that contains the Netscape configuration information (o=NetscapeRoot subtree), you may do so through Directory Server Console.

If you change the configuration directory or user directory port or secure port numbers, you should be aware of the following repercussions:

To modify the port or secure port on which either a user or a configuration directory listens for incoming requests:

  1. In the Directory Server Console, select the Configuration tab and then select the top entry in the navigation tree in the left pane.
  2. Select the Settings tab in the right pane.
  3. Enter the port number you want the server to use for non-SSL communications in the "Port" text box.
  4. The default value is 389.
     
  5. Enter the port number you want the server to use for SSL communications in the Encrypted Port text box.
  6. The encrypted port number that you specify must not be the same port number as you are using for normal LDAP communications. The default value is 636.
     
  7. Click Save and then restart the server.
  8. See "Starting and Stopping the Directory Server" for information.
     

Placing the Entire Directory Server in Read-Only Mode

If you maintain more than one database with your Directory Server and you need to place all your databases in read-only mode, you can do this in a single operation. Note, however, that if your Directory Server contains replicas, you must not use read-only mode because it will disable replication.

To put the Directory Server in read-only mode:

  1. In the Directory Server Console, select the Configuration tab and then select the top entry in the navigation tree in the left pane.
  2. Select the Settings tab in the right pane.
  3. Select the Make Entire Server Read-Only checkbox.
  4. Click Save and then restart the server.

  5. Note  

    This operation also makes the Directory Server configuration read-only; therefore, you cannot update the server configuration, enable or disable plug-ins, or even restart the Directory Server while it is in read-only mode.




For information on placing a single database in read-only mode, refer to "Enabling Read-Only Mode".

Tracking Modifications to Directory Entries

You can configure the server to maintain special attributes for newly created or modified entries:

To enable the Directory Server to track this information:

  1. In the Directory Server Console, select the Configuration tab and then select the top entry in the navigation tree in the left pane.
  2. Select the Settings tab in the right pane.
  3. Select the Track Entry Modification Times checkbox.
  4. The server adds the creatorsName, createTimestamp, modifiersName, and modifyTimestamp attributes to every newly created or modified entry.
     
  5. Click Save and then restart the server.
  6. See "Starting and Stopping the Directory Server" for more information.
     

Starting the Server with SSL Enabled


On Windows, if you are using SSL with your server, you must start the server from the server's host machine. This is because a dialog box will prompt you for the certificate PIN before the server will start. For security reasons, this dialog box appears only on the server's host machine.

On UNIX, you must start the server from the command line.

Alternatively, on either platform, you can create a password file to store your certificate password. By placing your certificate database password in a file, you can start your server from the server console, and also allow your server to automatically restart when running unattended.


Caution  

This password is stored in clear text within the password file, so its usage represents a significant security risk. Do not use a password file if your server is running in an unsecured environment.




The password file must be placed in the following location:

serverRoot/alias/slapd-serverID-pin.txt

where serverID is the identifier you specified for the server when you installed it.

You need to include the token name and password in the file as follows:

Token:Password

For example:

Internal (Software) Token:mypassword

To create certificate databases, you must use the administration server and the Certificate Setup Wizard. For information on certificate databases, certificate aliases, SSL, and obtaining a server certificate, see Managing Servers with Netscape Console. For information on using SSL with your Directory Server, see Chapter 11 "Managing SSL."

Cloning a Directory Server


Once you have set up and configured your Directory Server, Netscape Console offers a simple way of duplicating your configuration on another instance of the Directory Server. This is a two-phase procedure:

Creating a New Directory Server Instance

  1. In the Netscape Console window, select then right click Server Group in the navigation tree.
  2. From the pop-up menu, select Create Instance of > Directory Server.
  3. The Create New Instance dialog box is displayed.
     
  4. Enter a unique identifier for the server in the Server Identifier field.
  5. This name must not include the period (.) symbol.
     
  6. Enter the a port number for LDAP communications in the Network port field.
  7. Enter the suffix managed by this new instance of the directory in the base suffix field.
  8. Enter a DN for the Directory Manager in the Root DN field.
  9. For information on the role and privileges of the Directory Manager entry, refer to "Configuring the Directory Manager".
     
  10. Enter the password for this user in the Password for Root DN field, and confirm it by entering it again in the Confirm Password field.
  11. If running the server on a UNIX host, enter the user ID for the Directory Server daemon, in the Server Runtime User ID field.
  12. Click OK.
  13. A status box appears to confirm that the operation was successful. To dismiss it, click OK.
     

Cloning the Directory Configuration

  1. In the Netscape Console window, expand the Server Group folder, and right-click on the Directory Server that you want to clone.
  2. From the pop-up menu, select Clone Server Config.
  3. A new window is displayed with the list of target servers for cloning.
     
  4. In this window, select the server to which you want the configuration to apply, and click the Clone To button.
  5. A message is displayed to give you the status of the operation.
     

Starting the Server in Referral Mode


Referrals are used to redirect client applications to another server while the current server is unavailable, or when the client requests information that is not held on the current server.

For example, you can also start Directory Server in referral mode if you're making configuration changes to the Directory Server and you want all clients to be referred to another master for the duration. To do this, you must start the server with the refer command.

If the server is already running, you can put it in referral mode by using the Directory Server Console. This procedure is explained in "Setting Default Referrals".

Using the refer Command

On a UNIX machine, to start the Directory Server in referral mode follow these steps:

  1. Go to the /bin/slapd/server directory under your installation directory:
  2. cd serverRoot/slapd-serverID/bin/slapd/server

  3. Run the refer command as follows:
  4. ./ns-slapd refer -D instance_dir [-p port] -r referral_url

where where instance_dir is the directory instance for which queries will be referred, port is the option port number of the Directory Server you want to start in referral mode, and referral_url is the referral returned to clients. For information on the format of an LDAP URL, refer to Appendix C "LDAP URLs."

On a Windows machine, to start the Directory Server in referral mode follow these steps:

  1. Go to the following directory under your installation directory:
  2. serverRoot\slapd-serverID\bin\slapd\server

  3. Run the refer command as follows:
  4. slapd.exe refer -D instance_dir [-p port] -r referral_url

    where instance_dir is the directory instance for which queries will be referred, port is the optional port number of the Directory Server you want to start in referral mode, and referral_url is the referral returned to clients. For information on the format of an LDAP URL, refer to Appendix C "LDAP URLs."
     


Previous      Contents      Index      DocHome      Next     

© 2001 Sun Microsystems, Inc. Portions copyright 1999, 2002-2003 Netscape Communications Corporation. All rights reserved.
Read the Full Copyright and Thrid-Party Acknowledgments.


Last Updated October 30, 2003