nerdexam
CompTIA

LX0-104 · 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. To restrict LDAP user authentication to a specific organizational unit, the ldap.conf file should be modified to include a search base that targets only that OU.

Security

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

(30 responses)
  • A
    93% (28)
  • D
    3% (1)
  • E
    3% (1)

Why each option

To restrict LDAP user authentication to a specific organizational unit, the `ldap.conf` file should be modified to include a search base that targets only that OU.

Aldap.confCorrect

The `ldap.conf` file (or `ldap.conf` in `/etc/openldap/`) is the global client configuration file for LDAP applications, including those using PAM-LDAP. To restrict user authentication to a specific organizational unit, the `BASE` or `BIND_DN` parameters within `ldap.conf` can be configured with a specific Distinguished Name (DN) that points directly to the desired OU, thus limiting the search scope for users.

Bpam_ldap.conf

`pam_ldap.conf` is for PAM-LDAP module configuration, but often points to or leverages settings in `ldap.conf` for general client-side LDAP parameters like base DN.

Cpam.conf

`pam.conf` is the main PAM configuration file (though often replaced by `/etc/pam.d/` directory structure), but it defines which PAM modules are used, not the specific LDAP search parameters like base DN for filtering OUs.

D/etc/pam.d/login

`/etc/pam.d/login` configures PAM for the `login` service specifically, defining which PAM modules are called, but it does not configure the LDAP search base for user lookups.

E/etc/pam.d/ldap

`/etc/pam.d/ldap` (if it exists) would configure PAM for an `ldap` service, but it typically defines module usage rather than LDAP client parameters like search base.

Concept tested: LDAP client configuration for search base

Source: https://linux.die.net/man/5/ldap.conf

Topics

#LDAP authentication#pam_ldap#ldap.conf

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice