LDAP-UX Client Services B.04.00 with Microsoft Windows 2000/2003 Active Directory Administrator's Guide

Command, Tool, and Migration Script Reference
Name Service Migration Scripts
Appendix C 175
also prompt you for whether to leave the output as LDIF or to add the
entries to your directory. These scripts call the Perl scripts described
under “Migrating Individual Files” on page 175. You will need to modify
these scripts to ensure that any calls to Perl scripts not listed in
Table C-6 are commented out.
Migrating Individual Files
The following Perl scripts migrate each of your source files in /etc to
LDIF. These scripts are called by the shell scripts described under
“Migrating All Your Files” on page 174. The Perl scripts get their
information from the input source file and output LDIF.
Environment Variables
When using the Perl scripts to migrate individual files, you must set the
following mandatory environment variables:
LDAP_BASEDN The base distinguished name where you want 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”
SYNC_NISDOMAIN Windows 2000 domain where the NIS objects
reside.
General Syntax for Perl Migration Scripts
All the Perl migration scripts use the following general syntax:
scriptname inputfile [outputfile]
where:
scriptname
is the name of the particular script you are using. The
scripts are listed below.
inputfile
is the name of the appropriate name service source file
corresponding to the script you are using.
outputfile
is optional and is the name of the file where the LDIF
is written. stdout is the default output.