NFS Services Administrator's Guide (B.11.31.03) August 2008

Enabling LDAP Support for AutoFS
Before you enable LDAP support for AutoFS determine which schema shall be used
for storing the AutoFS maps. The LDAP administrator can provide this information.
HP-UX supports the following two options for schemas:
older schema that uses nisMAP and nisObject objects to represent the maps
new schema that uses automountMap and automount objects
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 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
76 Configuring and Administering AutoFS