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 the purpose of the /etc/nsswitch.conf file?
Open an interactive chat with Bash
What are the differences between the /etc/passwd file and an LDAP server?
Open an interactive chat with Bash
How does switching the order to 'passwd: ldap files' affect performance?