HP CIFS Server 3.0a Administrator's Guide version A.02.01

LDAP Integration Support
Migrating Your data to the Netscape Directory
Chapter 8136
Migrating Individual Files
The following perl scripts migrate each of your source files in the /etc
directory to LDIF. These scripts are called by the shell scripts, described
in the section “Migrating All Your Files” on page 134. The perl scripts
obtain their information from the input source file and output LDIF.
Environment Variables
When using the perl scripts to migrate individual files, you need to set
the following environment variables:
LDAP_BASEDN The base distinguished name where you want to store
your data.
For example, the following command sets the base DN
to DC=cup, DC=hp, DC=com:
export LDAP_BASEDN=”DC=cup, DC=hp, DC=com”
General Syntax for Perl Migration Scripts
All the perl migration scripts use the following general syntax:
scriptname inputfile [outputfile]
where
scriptname This is the name of the particular script you are using.
Table 6-2, lists the migration scripts.
inputfile This is the name of the appropriate name service
source file corresponding to the script you are using.
outputfile This is an optional parameter and is the name of the
file where the LDIF is saved. stdout is the default
output.
Migration Scripts
The migration scripts are described in Table 6-2 below.
Table 8-2 Migration Scripts
Script Name Description
migrate_base.pl Creates base DN information.