NFS Services Administrator's Guide (762805-001, March 2014)

1. If the AutoFS maps are not already migrated, migrate your AutoFS maps to LDAP Directory
Interchange Format (LDIF) files using the migration scripts.
The migrated maps can also be used if you have chosen the older schema. 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 into the LDAP directory server using the ldapmodify tool.
For information on importing the LDIF files, see the LDAP-UX Client Services B.04.10
Administrator’s Guide (J4269-90067).
3. Install the following attribute/object mappings on the LDAP-UX client:
objectclassmap: automount:automountMap=nisMap
objectclassmap: automount:automount=nisObject
attributemap: automount:automountMapName=nisMapName
attributemap: automount:automountKey=cn
attributemap: automount:automountInformation=nisMapEntry
For more information about the attribute mappings on the LDAP-UX client, see the LDAP-UX
Client Services B.04.10 Administrator’s Guide (J4269-90067).
4. Configure the Name Service Switch (NSS). Back up the current /etc/nsswitch.conf file,
and modify it to add LDAP as one of the backends for the automount service, as follows:
automount: ldap
5. Enter the following command to run the AutoFS shutdown script:
/sbin/init.d/autofs stop
6. Enter the following command to run the AutoFS startup script:
/sbin/init.d/autofs start
To enable LDAP support for AutoFS using the older schema, follow these steps:
1. If the AutoFS maps are not already migrated, migrate your AutoFS maps to LDAP Directory
Interchange Format (LDIF) files using the migration scripts.
The LDAP-UX client only supports the new AutoFS schema, and the migration scripts will migrate
the maps according to the new schema. 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 into the LDAP directory server using the ldapmodify tool.
For information on importing the LDIF files, see the LDAP-UX Client Services B.04.10
Administrator’s Guide (J4269-90067).
3. Enter the following command to run the AutoFS shutdown script:
/sbin/init.d/autofs stop
4. Enter the following command to run the AutoFS startup script:
/sbin/init.d/autofs start
AutoFS configuration prerequisites
Consider the following points before configuring AutoFS:
Ensure that the local directory you configure as the mount-point is either empty or non-existent.
If the local directory you configured as the mount-point is not empty, the local files or directories
in it are hidden and become inaccessible if the automounted filesystem is mounted over the
local directory.
Before you mount a remote directory on your system, you must configure the remote system,
where the directory is located, as an NFS server and export that directory.
If you change the mount options, the remote server name, or the remote directory name for
an existing direct or indirect mount while AutoFS is running, the changes take effect only when
56 Configuring and administering AutoFS