Courseiva
Network Client ManagementhardMultiple SelectObjective-mapped

LPIC-2 Network Client Management Practice Question

Which THREE files are commonly involved in configuring a Linux client for LDAP authentication?

⚠ Common exam trap

Watch out — candidates often confuse /etc/resolv.conf or /etc/hosts as being part of LDAP client configuration, but these files handle network resolution, not authentication or identity lookup configuration.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

/etc/pam.d/system-auth

/etc/pam.d/system-auth (or its equivalent, such as /etc/pam.d/common-auth on Debian-based systems) is the central PAM configuration file that defines authentication modules. For LDAP authentication, the pam_ldap module is typically stacked here to allow LDAP-based user credential verification, making it essential for integrating LDAP into the system's authentication flow.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • /etc/hosts

    Why it's wrong here

    Static hostname resolution, not used for LDAP authentication.

  • /etc/resolv.conf

    Why it's wrong here

    DNS configuration, not directly used for LDAP authentication.

  • /etc/pam.d/system-auth

    Why this is correct

    PAM configuration file that includes pam_ldap or pam_krb5.

  • /etc/ldap.conf

    Why this is correct

    Contains LDAP server URI, base DN, etc.

  • /etc/nsswitch.conf

    Why this is correct

    Defines order of LDAP for passwd, group, etc.

About these practice questions

This LPIC-2 question is part of Courseiva's 507-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This LPIC-2 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-2 exam.