Sun Directory Services 3.1 Administration Guide

To Initialize the NIS Service

  1. Install and license Sun Directory Services.

    These tasks are described in the installation instructions.

    When the package installation is complete, a message indicates that you must run the dsypinstall script to initialize the NIS service. However, before you do, you must perform the configuration steps described in this procedure.

  2. Start the Admin Console.

    This procedure is described in "Displaying the Admin Console".

  3. Create the naming contexts that you will use to store NIS information.

    You must create a naming context that is an appropriate domain component (DC) tree suffix for the domain that the server will manage. The initialization script will derive the naming contexts for NIS entries from the NIS domain name that you specify. For example, if you specify the domain name sales.XYZ.com, you must have a naming context of the form dc=XYZ, dc=com.

    Alternatively, you can modify the nis.mapping file to specify a different naming structure from the default DC structure derived from the NIS domain name. For information, refer to "Configuring Naming Contexts".

    To create a naming context, see "To Create a Data Store".

  4. Backup your current NIS files and database.

  5. As root, run dsypinstall:

    # /opt/SUNWconn/sbin/dsypinstall

    The dsypinstall script assumes that your Makefile is located in /var/yp. It also assumes that the source files for NIS tables are all located in the directory that you specify when prompted, except for the aliases file which is assumed to be in /etc/mail.

    You are prompted to enter the name of the NIS domain managed by the server and to specify whether you want to enable DNS interoperability.

    When the dsypinstall script has successfully finished, the NIS server is initialized and the LDAP directory database contains the information extracted from the NIS tables.

  6. Check the NIS status displayed in the Admin Console.

    If the Admin Console was running before you ran the dsypinstall script, in the Status section, click Check Status to display the current status.

    In the Status section, the NIS service should be listed as Running, and automatic restart should be Enabled. In the NIS section, the NIS functional role should be shown as "NIS master server" or "NIS slave server" depending on how you declared the server during the dsypinstall initialization. The NIS section also shows the list of all the NIS maps supported by the server.

  7. Run dejasync on the server. As root type:

    # /opt/SUNWconn/ldap/sbin/dejasync

    For details on the options of the dejasync(1m) command, refer to the man page. You must run dejasync if you want to use the Deja tool to modify NIS entries in the directory.

    For details on how NIS information is imported and stored in the LDAP directory, refer to "NIS Information in the LDAP Directory".