LFCS · Question #193
If no ACL lines are included in slapd.conf, what is the default behavior of slapd?
The correct answer is A. Allow anyone to read any entry. If no Access Control List (ACL) lines are configured in slapd.conf, OpenLDAP's default behavior is to allow anyone to read any entry in the directory.
Question
Options
- AAllow anyone to read any entry.
- BDeny anyone from reading any entries.
- COnly certain attributes such as userPassword are protected from read access.
- DAccess to the directory is only allowed from the local machine.
How the community answered
(30 responses)- A93% (28)
- B3% (1)
- D3% (1)
Why each option
If no Access Control List (ACL) lines are configured in `slapd.conf`, OpenLDAP's default behavior is to allow anyone to read any entry in the directory.
By default, when no explicit `access` directives are present in the `slapd.conf` file or dynamic configuration, OpenLDAP adopts a permissive policy. This default allows both authenticated and anonymous users to read all entries and their attributes within the directory, ensuring basic directory discoverability unless specifically restricted.
The default behavior is permissive (allow read), not restrictive (deny read).
While `userPassword` is often protected, the default policy without ACLs permits read access to all entries, not just selective protection.
Access is generally allowed from the network by default, not restricted solely to the local machine.
Concept tested: OpenLDAP default access control
Source: https://www.openldap.org/doc/admin24/access.html
Topics
Community Discussion
No community discussion yet for this question.