NFS Services Administrator's Guide (5900-1632, August 2011)

document, go to the HP-UX Networking docs page at: http://www.hp.com/go/
hpux-networking-docs. On this page, select HP-UX 11i v3 Networking Software.
LDAP: A directory service that stores information, which is retrieved by clients throughout the
network. To simplify HP-UX system administration, the LDAP-UX Integration product centralizes
user, group, and network information management in an LDAP directory. For more information
on the LDAP-UX Integration product, see the LDAP-UX Client Services B.04.00 Administrator’s
Guide (J4269–90064) available at: HP Business Support Center.
To configure the system to use one of these backends, follow these steps:
1. Configure the /etc/nsswitch.conf file by modifying the automount entry.
This enables you to specify one or more data stores to look up information (autofs maps). You
can also specify the order in which these data sources are looked up. The backends can be
specified to look up AutoFS maps. For more information on configuring the /etc/
nsswitch.conf file, see nsswitch.conf(4)
2. Configure the AutoFS maps on the specified data store.
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:
54 Configuring and Administering AutoFS