LDAP-UX Client Services B.05.00 with Microsoft Windows Active Directory Server Administrator's Guide (obsolete beyond B.05.00)
2.5.3.1.3 An example
The following shows an example of a direct AutoFS map, auto_direct, stored in the Windows
Active Directory Server using new automount schema:
dn:cn=auto_direct,dc=nishpind
objectClass: top
objectClass: automountMap
automountMapName: auto_direct
cn: auto_direct
dn:cn=/mnt_direct/usr1, cn=auto_direct, dc=nishpind
objectClass: top
objectClass: automount
automountInformation: hostA: /tmp
automountKey: /mnt_direct/usr1
cn: /mnt_direct/usr1
dn:cn=/mnt_direct/usr2, cn=auto_direct, dc=nishpind
objectClass: top
objectClass: automount
automountInformation: hostB: /tmp
automountKey: /mnt_direct/usr2
cn: /mnt_direct/usr2
2.5.3.2 Configuring Name Service Switch
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.3 Configuring automount caches
To improve performance of automount services, the ldapclient daemon, ldapclientd, caches
automount maps and automount entries in the maps to reduce the LDAP-UX Client response time
while retrieving information for automount maps and entries
To configure automount caches, set the parameters defined in the [automountMap] and
[automount] sections of the /etc/opt/ldapux/ldapclientd.conf file. See Section 6.1.4
(page 85) for details
2.5.3.4 AutoFS migration scripts
This section describes the migration scripts which can be used to migrate your AutoFS maps from
files to LDIF files. After LDIF files are created, you can use the ldapmodify tool to import LDIF
files to your 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 directory server before you use these migration scripts to migrate AutoFS maps.
Table 4describes the migration scripts located in the /opt/ldapux/migrate/ads directory:
2.5 Post-installation configuration tasks 57