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

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 Add a new entry into the LDAP directory
-h The LDAP directory 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 LDAP directory
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.
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="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:
dn:cn=auto_indirect,dc=nisserv1
objectClass: top
objectClass: automountMap
automountMapName: auto_indirect
cn: auto_indirect
dn:cn=lab1,cn=auto_indirect, dc=nisserv1
objectClass: top
objectClass: automount
automountInformation: hostA:/tmp
automountKey: lab1
cn: lab1
dn:cn=lab2,cn=auto_indirect,dc=nisserv1
objectClass: top
objectClass: automount
automountInformation: hostB:/tmp
automountKey: lab2
cn: lab2
70 LDAP-UX Client Services with AutoFS Support