LDAP-UX Client Services B.05.01 Administrator Guide for HP directory servers and Windows ADS
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
objectClass: automount
automountInformation:hostB:/tmp
automountKey:/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 in the LDAP directory. For example, the following
command imports the /tmp/auto_direct.ldif file to the LDAP base DN "dc=nishpind" in
the LDAP 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 Adds a new entry into the LDAP directory
-h Specifies the LDAP directory host name
-D Specifies the Distinguish Name (DN) of the directory manager
-w Specifies the password of the directory manager
-f Specifies the LDIF file to be imported into the LDAP directory
2.5.3.5.4 migrate_nis_automount.pl script
This script, found in /opt/ldapux/migrate, migrates the AutoFS maps from the NIS server to
LDIF.
Syntax
scriptname inputfile outputfile
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="cup.hp.com"
migrate_nis_automount.pl /etc/auto_indirect /tmp/auto_indirect.ldif
The following shows the /etc/auto_indirect file:
#local mount point remote server:directory
lab1 hostA:/tmp
lab2 hostB:/tmp
The following shows the /tmp/auto_indirect.ldif file:
dn:automountMapName=auto_indirect,dc=nisserv1
objectClass: top
objectClass: automountMap
automountMapName: auto_indirect
dn:automountKey=lab1,\
automountMapname=auto_indirect, dc=nisserv1
objectClass: top
objectClass: automount
2.5 Postinstallation configuration tasks 99