Courseiva
Network Client ManagementmediumMultiple SelectObjective-mapped

LPIC-2 Network Client Management Practice Question

Exhibit

Refer to the exhibit.

Exhibit:
```
# /etc/ldap.conf
base dc=example,dc=com
uri ldap://ldap.example.com
ldap_version 3
pam_filter objectclass=posixAccount
pam_password md5
nss_base_passwd dc=example,dc=com
nss_base_shadow dc=example,dc=com
nss_base_group dc=example,dc=com
```

Given the LDAP client configuration shown in the exhibit, which THREE additional components are required for LDAP authentication to work? (Choose three.)

⚠ Common exam trap

It's easy for candidates to confuse optional components like autofs or Kerberos as mandatory for LDAP authentication, when in fact only NSS, PAM, and caching (nscd) are the core required pieces for basic LDAP authentication to function.

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

Edit /etc/nsswitch.conf to include ldap in passwd, shadow, and group lines.

/etc/nsswitch.conf controls which sources the system uses for user, group, and password lookups. Adding 'ldap' to the passwd, shadow, and group lines directs the Name Service Switch (NSS) to query the LDAP directory for authentication-related information, which is essential for integrating LDAP as an identity source.

Answer analysis

Option-by-option breakdown

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

  • Edit /etc/nsswitch.conf to include ldap in passwd, shadow, and group lines.

    Why this is correct

    Necessary to query LDAP for user/group info.

  • Install and configure autofs.

    Why it's wrong here

    Not related to LDAP authentication.

  • Configure /etc/krb5.conf for Kerberos.

    Why it's wrong here

    Not required for basic LDAP authentication.

  • Add 'auth sufficient pam_ldap.so' or similar to /etc/pam.d/system-auth.

    Why this is correct

    LDAP PAM module handles authentication.

  • Start the nscd service.

    Why this is correct

    Caches user/group information for performance.

About these practice questions

One of 507 original LPIC-2 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.