Linux_FoundationLinux_Foundation
LFCS · Question #128
LFCS Question #128: Real Exam Question with Answer & Explanation
The correct answer is B: Restart the sshd service.. After modifying PAM/NSS for LDAP integration, restarting the sshd service is the first debugging step to ensure it loads the updated authentication configurations.
Submitted by javi_es· Apr 18, 2026Operation of Running Systems
Question
After configuring PAM and NSS to integrate with OpenLDAP, the SSH server refuses to authenticate users who are only in LDAP. What is the first step you should follow to debug this problem?
Options
- ARestart the pamd service.
- BRestart the sshd service.
- CRestart the nssd service.
- DAdd the Use_LDAP = yes parameter to sshd_config.
Explanation
After modifying PAM/NSS for LDAP integration, restarting the sshd service is the first debugging step to ensure it loads the updated authentication configurations.
Common mistakes.
- A.
pamdis not a service that can be restarted; PAM (Pluggable Authentication Modules) is a framework that services likesshdutilize, and changes to PAM configuration files are only effective for a service after that specific service is restarted. - C.
nssdis not a standard service related to NSS (Name Service Switch); whilenscd(Name Service Cache Daemon) can be restarted, restartingsshdis the more direct and primary action to ensure new NSS configurations are applied to SSH. - D. The
sshd_configfile does not have aUse_LDAP = yesparameter for direct LDAP integration; SSH delegates user authentication to PAM, which then handles the integration with LDAP through its modules.
Concept tested. SSH/PAM/NSS/LDAP debugging
Topics
#PAM#NSS#SSH#Service Troubleshooting
Community Discussion
No community discussion yet for this question.