Sun Directory Services 3.1 Administration Guide

Populating the Directory

If you do not want to create directory entries manually, you can populate the directory using the dsimport bulk load utility. This utility creates directory entries from any text file in which one line corresponds to one directory entry. You must create a mapping file that specifies the semantics for the information provided in each line of the input file. You might also need to create an LDAP object class and attributes that are specific to the type of information you want to store in the directory.

Refer to "Mapping Syntax and Semantics" for information on the structure and content of a mapping file. A complete example of creating a mapping file and using dsimport is given in "Example: Using dsimport".

For details on all the options of dsimport(1m), refer to the man page.

The dsimport utility is also used during the initialization of the NIS service to import all the information stored in NIS files into the LDAP directory. When you run the dsypinstall script to configure Sun Directory Services as an NIS server, the NIS information available on your server is automatically added to your directory database through a call to dsimport. The mapping of NIS files into LDAP object classes and attributes is described in the nis.mapping file in the directory /etc/opt/SUNWconn/ldap/current/mapping. For full details on importing NIS information into the directory, see "Initializing the Sun Directory Services NIS Service".


Note -

The information mapping described in the radius.mapping file in the directory /etc/opt/SUNWconn/ldap/current/mapping is used to perform RADIUS searches in the LDAP directory, not to import RADIUS information.