NFS Services Administrator's Guide

Configuring and Administering AutoFS
How AutoFS Works
Chapter 3 107
For information on setting up AutoFS maps on NIS, see NIS
Administrator’s Guide (5991-7656).
For information on setting up AutoFS maps for LDAP, see “Enabling
AutoFS for LDAP Support” on page 107.
Enabling AutoFS for LDAP Support
To enable AutoFS for LDAP support, follow these steps:
1. Migrate your AutoFS maps to LDIF (LDAP Directory Interchange
Format) files, using the migration scripts, if the AutoFS maps are not
already migrated.
For information on the specific migration scripts, see LDAP-UX
Client Services B.04.10 Administrator’s Guide (J4269-90067).
2. Import the LDIF files in to the LDAP directory server using the
ldapmodify tool.
For information on the migration scripts, see the LDAP-UX Client
Services B.04.10 Administrator’s Guide (J4269-90067).
3. Check whether the nisObject automount schema exists in the
/var/opt/netscape/servers/slapd-<server-instance>/config
/schema/10rfc2307.ldif file in the LDAP directory, by searching
for entries that contain the following fields:
• NAME ‘nisMapName’
• NAME ‘nisMapEntry’
• NAME ‘nisObject’
• NAME ‘nisMap’
If the entries do not exist, set up the attribute mappings on the
LDAP-UX client. For more information, see the LDAP-UX Client
Services B.04.10 Administrator’s Guide (J4269-90067).
4. Configure the Name Service Switch (NSS), to enable AutoFS for
LDAP support.
Backup the current /etc/nsswitch.conf file. Then modify the
working file, to add an entry for LDAP support to the automount
service as follows:
automount: ldap