LDAP-UX Client Services B.05.00 with Microsoft Windows Active Directory Server Administrator's Guide (obsolete beyond B.05.00)
Table 4 Migration scripts
DescriptionMigration Script
Migrates AutoFS maps from files to LDIF.migrate_automount_ads.pl
Migrates AutoFS maps form the NIS server to LDIF.migrate_nis_automount_ads.pl
2.5.3.4.1 Environment variables
When you use the AutoFS migration scripts to migrate AutoFS maps, set the following environment
variables:
LDAP_BASEDN The base distinguished name of the directory server that the AutoFS maps
are to be placed in.
NIS_DOMAINNAME This variable specifies the fully qualified name of the NIS domain where
you want to migrate your data from. This variable is optional. If the NIS
domain name is not specified, LDAP-UX uses the value of the NIS_DOMAIN
parameter configured in the /etc/rc.conf.d/namesvrs file.
This variable is only used by the migrate_nis_automount.pl script.
2.5.3.4.2 Examples
The following command sets the base DN to "dc=example, dc=hp, dc=com":
export LDAP_BASEDN="example.hp.com"
The following command sets the fully qualified name of the NIS domain to "example.hp.com":
export NIS_DOMAINNAME="example.hp.com"
2.5.3.4.3 General syntax for migration scripts
The migration scripts use the following general syntax:
scriptname inputfile outfile
where
scriptname Is the name of the particular script you are using.
inputfile Is the fully qualified file name of the appropriate AutoFS map that you want to
migrate. For example, /etc/auto_master.
outputfile This is optional and is the name of the file where the LDIF is written. stdout is
the default output.
2.5.3.4.4 The migrate_automount_ads.pl script
This script, found in /opt/ldapux/migrate/ads, migrates the AutoFS maps from files to LDIF.
2.5.3.4.4.1 Syntax
scriptname inputfile outputfile
2.5.3.4.4.2 Examples
The following commands migrate the AutoFS map /etc/auto_direct to LDIF and place the
results in the /tmp/auto_direct.ldif file:
export LDAP_BASEDN="dc=nishpind"
migrate_automount_ads.pl /etc/auto_direct /tmp/auto_direct.ldif
The following shows an example of the /etc/auto_direct file:
58 Installing LDAP-UX Client Services