LDAP-UX Client Services B.05.01 Administrator Guide for HP directory servers and Windows ADS

You can use the /opt/ldapux/bin/ldapmodify tool to import into the directory server the
LDIF file /tmp/auto_direct.ldif that you just created. 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=administrator, cn=users, dc=nishpind" \
-w <passwd> -f /tmp/auto_direct.ldif
where options are:
-a Adds a new entry into the directory server
-h Specifies the directory server 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 directory server
3.5.3.4.4 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
You can use the /opt/ldapux/bin/ldapmodify tool to import into the directory server the
LDIF file /tmp/auto_indirect.ldif that you just created. For example, the following command
imports the /tmp/auto_indirect.ldif file to the LDAP base DN "dc=nisserv1" in the
directory server LDAPSERV1:
156 Installing and configuring LDAP-UX Client Services for a Windows ADS environment