Command Line User Management

"Populating the Directory" on page 167 explained how to populate the directory with the information required to support SIMS. Once the directory service is running, you need to maintain that directory information by adding, modifying, or deleting entries. This section summarizes the tools you can use to maintain directory information from the command line.


 

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 SIMS Reference Manual describes the LDIF file format.
  2. Add this file using ldapadd:

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

  where the option -D introduces the distinguished name of the data store administrator, -w introduces the administrator password, and -f introduces the file holding the information to add to the database.
  The SIMS Reference Manual describes the ldapadd command.

The root entry now exists. You can create as many new entries as you like.




Copyright © 1999 Sun Microsystems, Inc. All Rights Reserved.