LDAP-UX Client Services B.05.00 with Microsoft Windows Active Directory Server Administrator's Guide (obsolete beyond B.05.00)
#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 directory server. For example,
the following command imports the /tmp/auto_direct.ldif file to the LDAP base DN
"dc=nishpind" in the directory server LDAPSERV1:
/opt/ldapux/bin/ldapmodify -a -h LDAPSERV1 -D "cn=directory manager" \
-w <passwd> -f /tmp/auto_direct.ldif
Where options are:
-a Add a new entry into the directory server
-h The directory server host name
-D The Distinguish Name (DN) of the directory manager
-w The password of the directory manager
-f The LDIF file to be imported into the directory server
2.5.3.4.5 The migrate_nis_automount_ads.pl script
This script, found in /opt/ldapux/migrate/ads, migrates the AutoFS maps from the NIS server
to LDIF.
2.5.3.4.5.1 Syntax
scriptname inputfile outputfile
2.5.3.4.5.2 Examples
The following commands migrate the AutoFS map /etc/auto_indirect to LDIF and place the
results in the /tmp/auto_indirect.ldif file:
export LDAP_BASEDN="dc=nisserv1"
export NIS_DOMAINNAME="example.hp.com"
migrate_nis_automount_ads.pl /etc/auto_indirect /tmp/auto_indirect.ldif
The following shows an example of the /etc/auto_indirect file:
#local mount point remote server:directory
lab1 hostA:/tmp
lab2 hostB:/tmp
The following shows the resulting /tmp/auto_indirect.ldif file:
2.5 Post-installation configuration tasks 59