LDAP-UX Client Services B.04.10 Administrator's Guide (edition 7)
Syntax
scriptnameinputfileoutputfile
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.pl /etc/auto_direct /tmp/auto_direct.ldif
The following shows 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 /tmp/auto_direct.ldif file:
dn:automountMapName=auto_direct,dc=nishpind
objectClass: top
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 above into 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 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
62 Installing And Configuring LDAP-UX Client Services