LDAP-UX Client Services B.05.00 Administrator's Guide
If you want to perform attribute mappings or search filter changes by using the Custom
Configuration, ensure that you do not accept the remaining default configuration parameters in
step 4 of the Custom Configuration.
NOTE: You can use the nisObject automount schema without attribute mappings and search
filter changes if only the nisObject automount schema exists in the LDAP directory.
2.5.3.3 Configuring NSS
Configure the Name Service Switch (NSS) to enable the LDAP support for AutoFS.
You can save a copy of /etc/nsswitch.conf file and modify the original to add LDAP support
to the automount service. See /etc/nsswitch.ldap for a sample.
The following shows the sample file, /etc/nsswitch.ldap:
passwd: files ldap
group: files ldap
hosts: dns files ldap
networks: files ldap
protocols: files ldap
rpc: files ldap
publickey: ldap [NOTFOUND=return] files
netgroup: files ldap
automount: files ldap
aliases: files
services: files ldap
2.5.3.4 AutoFS migration scripts
This section describes the migration scripts which can be used to migrate your AutoFS maps
from files, NIS servers or NIS+ servers 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 2-8 (page 98) describes the migration scripts:
Table 2-8 Migration scripts
DescriptionMigration Script
Migrates AutoFS maps from files to LDIF.
migrate_automount.pl
Migrates AutoFS maps from the NIS server to LDIF.
migrate_nis_automount.pl
Migrates AutoFS maps from NIS+ server to the
nisp_automap.ldif file.
migrate_nisp_autofs.pl
2.5.3.4.1 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 that the AutoFS maps
are to be placed in.
DOM_ENV This only applies to the migrate_nisp_autofs.pl script. This variable
defines the fully qualified name of the NIS+ domain where you want to
migrate your data from.
NIS_DOMAINNAME This only applies to the migrate_nis_automount.pl script. 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
98 Installing and configuring LDAP-UX Client Services