Sun Directory Services 3.1 Administration Guide

To Create the Root Entry for XYZ Corporation

  1. Create an LDIF file called root-file that contains:

    dn: o=XYZ, c=US
    objectClass: organization

    The LDIF file format is described in detail in the ldif(4) man page.

  2. Add this file using ldapadd(1):

    prompt% ldapadd -c -D "cn=admin-cn, o= XYZ, c=US" -w admin-pw -f root-file

    where:

    • -c specifies to continue processing even if errors occur

    • -D introduces the distinguished name of the data store administrator. The DN must be given in quotes because it is likely to contain blank spaces.

    • -w introduces the administrator password

    • -f introduces the file holding the information to add to the database.

    If you want to avoid your password showing up in a command listing, you can omit the -w option. The ldapadd command will prompt you for your password.

    The root entry now exists.