During system troubleshooting, you notice that user authentication seems to bypass the local /etc/passwd file and is directly querying an LDAP server, leading to delays. Which configuration entry should you examine to ensure that local files are checked before LDAP in the name service resolution process?
The entry passwd: files ldap in the /etc/nsswitch.conf file ensures that the local authentication lookups consult the local /etc/passwd file (files) before attempting to use LDAP. This correct configuration optimizes user authentication by reducing reliance on network services when local credentials are available. Alternative configurations like passwd: ldap files or passwd: nis files suggest that LDAP or NIS (Network Information Service) would be queried before local files respectively, which is not the desired behavior based on the scenario provided. There is no authentication: files ldap directive in /etc/nsswitch.conf, making it an incorrect and misleading answer.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is LDAP and how does it work in user authentication?
Open an interactive chat with Bash
What are the implications of changing the order in `nsswitch.conf`?
Open an interactive chat with Bash
What other services use the `/etc/nsswitch.conf` file for name resolution?