nerdexam
Linux_Foundation

LFCS · Question #436

To restrict user authentication to ONLY users who belong to a specific organizational unit, which file should be modified?

The correct answer is A. ldap.conf. This question asks which configuration file is modified to restrict user authentication via LDAP to only users within a specific organizational unit.

Submitted by jian89· Apr 18, 2026User and Group Management

Question

To restrict user authentication to ONLY users who belong to a specific organizational unit, which file should be modified?

Options

  • Aldap.conf
  • Bpam_ldap.conf
  • Cpam.conf
  • D/etc/pam.d/login
  • E/etc/pam.d/ldap

How the community answered

(56 responses)
  • A
    84% (47)
  • B
    2% (1)
  • C
    7% (4)
  • D
    5% (3)
  • E
    2% (1)

Why each option

This question asks which configuration file is modified to restrict user authentication via LDAP to only users within a specific organizational unit.

Aldap.confCorrect

The `ldap.conf` file is the global client configuration file for LDAP applications and PAM modules, where parameters like `base` (search base DN) and `filter` can be set to restrict user lookups to a specific organizational unit, thereby controlling which users can authenticate.

Bpam_ldap.conf

`pam_ldap.conf` is an older or less common configuration file; modern PAM LDAP modules usually rely on settings in `ldap.conf` for such global restrictions.

Cpam.conf

`pam.conf` is the main PAM configuration file, but it typically delegates LDAP-specific parameters like search bases to the `ldap.conf` file or module-specific configurations.

D/etc/pam.d/login

`/etc/pam.d/login` configures PAM for the `login` service, but it specifies which PAM modules to use, not the specific LDAP parameters like base DN for filtering users.

E/etc/pam.d/ldap

`/etc/pam.d/ldap` (or a similar name) configures the PAM `ldap` module, but the detailed LDAP server and search parameters for restricting users by OU are usually sourced from the global `ldap.conf` file.

Concept tested: OpenLDAP client configuration for authentication filtering

Source: https://www.openldap.org/software/man.cgi?query=ldap.conf&sektion=5&apropos=0&manpath=OpenLDAP+2.4-Release&format=html

Topics

#LDAP#Authentication#PAM#User Filtering

Community Discussion

No community discussion yet for this question.

Full LFCS Practice