LDAP-UX Client Services B.05.00 Administrator's Guide

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"
2.5.3.4.2 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.
2.5.3.4.3 The migrate_automount.pl script
This script, found in /opt/ldapux/migrate, migrates the AutoFS maps from files to LDIF.
2.5.3.4.3.1 Syntax
scriptnameinputfileoutputfile
2.5.3.4.3.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.pl /etc/auto_direct /tmp/auto_direct.ldif
The following shows the /etc/auto_direct file:
#local mount point remote server:directory
/mnt/direct/lab1 hostA:/tmp
/mnt/direct/lab2 hostB:/tmp
The following shows the /tmp/auto_direct.ldif file:
dn:automountMapName=auto_direct,dc=nishpind
objectClass: top
objectClass: automountMap
automountMapName: auto_direct
dn:automountKey=/mnt_direct/lab1,\ automountMapname=auto_direct, dc=nishpind
objectClass: top
objectClass: automount
automountInformation:hostA:/tmp
automountKey: /mnt_direct/lab1
dn:automountKey=/mnt_direct/lab2,\
automountMapname=auto_direct, dc=nishpind
objectClass: top
2.5 Post-installation configuration tasks 99