LDAP-UX Client Services B.04.10 with Microsoft Windows Active Directory Server Administrator's Guide

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.
The migrate_automount_ads.pl Script
This script, found in /opt/ldapux/migrate/ads, migrates the AutoFS maps from files to
LDIF.
Syntax
scriptname inputfile outputfile
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:
#local mount point remote server:directory
/mnt/direct/lab1 hostA:/tmp
/mnt/direct/lab2 hostB:/tmp
The following shows the resulting /tmp/auto_direct.ldif file:
dn:cn=auto_direct,dc=nishpind
objectClass: top
objectClass: automountMap
automountMapName: auto_direct
cn: auto_direct
dn:cn=/mnt_direct/lab1,cn=auto_direct,dc=nishpind
objectClass: top
objectClass: automount
automountInformation:hostA:/tmp
automountKey: /mnt_direct/lab1
cn: /mnt_direct/lab1
dn:cn=/mnt_direct/lab2,cn=auto_direct,dc=nishpind
objectClass: top
objectClass: automount
automountInformation:hostB:/tmp
automountKey: /mnt_direct/lab2
cn: /mnt_direct/lab2
You can use the /opt/ldapux/bin/ldapmodify tool to import the LDIF file
/tmp/auto_direct.ldif that you just created above into the LDAP directory. For example,
AutoFS Migration Scripts 69