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.
Question
Options
- Aldap.conf
- Bpam_ldap.conf
- Cpam.conf
- D/etc/pam.d/login
- E/etc/pam.d/ldap
How the community answered
(56 responses)- A84% (47)
- B2% (1)
- C7% (4)
- D5% (3)
- E2% (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.
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.
`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.
`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.
`/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.
`/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
Community Discussion
No community discussion yet for this question.