HP CIFS Server Administrator Guide Version A.02.04.04 (5070-6710, October 2011)

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 12 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/passwd file.migrate_passwd.pl
2
Migrates protocols in the /etc/protocols file.migrate_protocols.pl
Migrates RPCs in the /etc/rpc file.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.
90 LDAP Integration Support