HP CIFS Server 3.0f Administrator's Guide verison A.02.03

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=org, DC=hp, DC=com:
export LDAP_BASEDN="DC=org, 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 6-2 Migration Scripts
DescriptionScript Name
Creates base DN information.migrate_base.pl
Migrates groups in the /etc/group file.migrate_group.pl
Migrates hosts in the /etc/hosts file.migrate_hosts.pl
1
Migrates networks in the /etc/networks file.migrate_networks.pl
Migrates users in the /etc/passwdfile.migrate_passwd.pl
2
Migrates protocols in the /etc/protocols file.migrate_protocols.pl
Migrates RPCs in the /etc/rpcfile.migrate_rpc.pl
Migrates services in the /etc/services file.migrate_services.pl
3
Specifies a set of routines and configuration information all the perl scripts use.migrate_common.ph
1 Systems have been configured with the same host name, then the migration script migrate_host.pl will create multiple entries
in its resulting LDIF file with the same distinguished name for the host name for each of the IP addresses. Since distinguished names
need to be unique in an LDAP directory, you need to first manually merge the IP addresses with one designated host record and
delete the duplicated records in your LDIF file. A resulting merge might look as follows:
. . . .
dn: cn=machineA, ou=hosts, ou=unix, dc=org, dc=hp, dc=com
objectClass: top
objectClass: ipHost
ipHostNumber: 1.3.5.72
ipHostNumber: 1.3.8.4
ipHostNumber: 1.5.8.76
cn: hostA
cn: hostA.org.hp.com
. . . .
2 Netgroup
- The NIS optimization maps 'byuser' and 'byhost' are not utilized.
-Each triple is stored as a single string.
-Each triple must be enclosed by parentheses. For example, "(machine, user, domain)" is a valid triple while "machine, user,
domain" is not.
Migrating Your data to the Directory Server 89