Installing And Configuring LDAP-UX Client Services

AutoFS Support

The 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 automountInformation:hostA:/tmp automountKey: lab1

dn:automountKey=lab2, \ automountMapname=auto_indirect, dc=nisserv1 objectClass: top

objectClass: automount automountInformation:hostB:/tmp automountKey:lab2

66

Chapter 2