Chapter 21. Using SSSD component from IdM to cache the autofs maps
The System Security Services Daemon (SSSD) is a system service to access remote service directories and authentication mechanisms. Data caching is useful when network connectivity is slow. You can configure the SSSD service to cache autofs maps.
21.1. Configuring SSSD to cache autofs maps Copy linkLink copied to clipboard!
The System Security Services Daemon (SSSD) service can cache autofs maps stored on an Identity Management (IdM) server. It avoids the need to configure autofs to directly use the IdM server.
Prerequisites
-
The
sssdpackage is installed.
Procedure
Open the SSSD configuration file:
# vim /etc/sssd/sssd.confAdd the
autofsservice to the list of services handled by SSSD.[sssd] domains = ldap services = nss,pam,autofsCreate a new
[autofs]section. You can leave this blank, because the default settings for anautofsservice work with most infrastructures.[nss] [pam] [sudo] [autofs] [ssh] [pac]For more information, see the
sssd.confman page on your system.Optional: Set a search base for the
autofsentries. By default, this is the Lightweight Directory Access Protocol (LDAP) search base. A subtree can be specified in theldap_autofs_search_baseparameter.[domain/EXAMPLE] ldap_search_base = "dc=example,dc=com" ldap_autofs_search_base = "ou=automount,dc=example,dc=com"Restart SSSD service:
# systemctl restart sssd.serviceCheck the
/etc/nsswitch.conffile, so that SSSD is listed as a source for automount configuration:automount: sss filesRestart
autofsservice:# systemctl restart autofs.serviceTest the configuration by listing a user’s
/homedirectory, assuming there is a master map entry for/home:# ls /home/userNameIf this does not mount the remote file system, check the
/var/log/messagesfile for errors. If necessary, increase the debug level in the/etc/sysconfig/autofsfile by setting theloggingparameter todebug.