LDAP-UX Client Services B.04.10 Administrator's Guide (edition 7)
Table 2-5 Migration Scripts
DescriptionMigration Script
Migrates AutoFS maps from files to LDIF.
migrate_automount.pl
Migrates AutoFS maps from the NIS server to LDIF.
migrate_nis_automount.pl
Migrates AutoFS maps from NIS+ server to the
nisp_automap.ldif file.
migrate_nisp_autofs.pl
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 LDAP directory that the AutoFS maps
are to be placed in.
DOM_ENV This only applies to the migrate_nisp_autofs.pl script. This variable
defines the fully qualified name of the NIS+ domain where you want to
migrate your data from.
NIS_DOMAINNAME This only applies to the migrate_nis_automount.pl script. 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.
Examples:
The following command sets the fully qualified name of the NIS+ domain to "cup.hp.com":
export DOM_ENV="cup.hp.com"
The following command sets the fully qualified name of the NIS domain to "india.hp.com":
export NIS_DOMAINNAME="india.hp.com"
The following command sets the base DN to "dc=cup, dc=hp, dc=com":
export LDAP_BASEDN="dc=cup, dc=hp, dc=com"
General Syntax For Migration Scripts
The migration scripts use the following general syntax:
scriptnameinputfileoutfile
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 only applies to the migrate_nis_automount.pl and
migrate_automount.pl scripts. This is optional and is the name of the file
where the LDIF is written. stdout is the default output.
The migrate_automount.pl Script
This script, found in /opt/ldapux/migrate, migrates the AutoFS maps from files to LDIF.
AutoFS Support 61