Command and Tool Reference

Name Service Migration Scripts

LDAP_BASEDN The base distinguished name where you want your data.

For example, the following command sets the base DN to “o=hp.com”:

export LDAP_BASEDN=”o=hp.com”

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.

Migration Scripts

The migration scripts are described in the table below.

Table 5-6

Migration Scripts

 

 

 

 

 

Script Name

Description

 

 

 

 

migrate_base.pl

creates base DN information.

 

 

 

 

migrate_group.pl

migrates groups in

 

 

/etc/group.

 

 

 

 

migrate_hosts.pl a

migrates hosts in /etc/hosts.

 

migrate_netgroup.plb

migrates netgroups in

 

 

/etc/netgroup.

 

 

 

 

migrate_passwd.pl

migrates users in

 

 

/etc/passwd.

 

 

 

 

migrate_protocols.pl

migrates protocols in

 

 

/etc/protocols.

 

 

 

162

Chapter 5