LDAP-UX Client Services B.04.10 with Microsoft Windows Active Directory Server Administrator's Guide
AutoFS Migration Scripts
This section describes the migration scripts which can be used to migrate your AutoFS maps
from files to LDIF files. After LDIF files are created, you can use the ldapmodify tool to import
LDIF files to your LDAP directory server. These migration scripts use the new automount schema
defined in RFC 2307-bis to migrate the AutoFS maps to LDIF. You need to import the new
automount schema into your LDAP directory server before you use these migration scripts to
migrate AutoFS maps.
Table 4-2 describes the migration scripts located in the /opt/ldapux/migrate/ads directory:
Table 4-1 Migration Scripts
DescriptionMigration Script
Migrates AutoFS maps from files to LDIF.
migrate_automount_ads.pl
Migrates AutoFS maps form the NIS server to LDIF.
migrate_nis_automount_ads.pl
Environment Variables
When you use the AutoFS migration scripts to migrate AutoFS maps, set the following
environment variables:
LDAP_BASEDN
The base distinguished name of the LDAP directory server that the AutoFS
maps are to be placed in.
NIS_DOMAINNAME
This variable specifies the fully qualified name of the NIS domain where
you want to migrate your data from. This variable is optional. If the NIS
domain name is not specified, LDAP-UX uses the value of the
NIS_DOMAIN parameter configured in the /etc/rc.conf.d/namesvrs
file.
This variable is only used by the migrate_nis_automount.pl script.
Examples
The following command sets the base DN to "dc=example, dc=hp, dc=com":
export LDAP_BASEDN="example.hp.com"
The following command sets the fully qualified name of the NIS domain to "example.hp.com":
export NIS_DOMAINNAME="example.hp.com"
68 LDAP-UX Client Services with AutoFS Support