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 directs the Name Service Switch (NSS) to check the local /etc/passwd file (files) first before querying LDAP. This minimizes network latency when local credentials already satisfy the request. The variant "passwd: ldap files" reverses the order, querying the network source first. "passwd: nis files" would involve NIS instead of LDAP, and there is no valid directive "authentication: files ldap" in nsswitch.conf, so that choice is invalid.
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?