LFCS · Question #338
Which of the following is the correct syntax for including a schema file in slapd.conf?
The correct answer is A. include /usr/local/etc/openldap/schema/core.schema. The correct way to include a schema definition file in an OpenLDAP slapd.conf configuration is by using the include directive followed by the full path to the schema file.
Question
Options
- Ainclude /usr/local/etc/openldap/schema/core.schema
- Ballow /usr/local/etc/openldap/schema/core.schema
- Cpermit /usr/local/etc/openldap/schema/core.schema
- Dadd /usr/local/etc/openldap/schema/core.schema
How the community answered
(39 responses)- A92% (36)
- B3% (1)
- C5% (2)
Why each option
The correct way to include a schema definition file in an OpenLDAP `slapd.conf` configuration is by using the `include` directive followed by the full path to the schema file.
In OpenLDAP's `slapd.conf`, the `include` directive is the standard and required method for incorporating external configuration files, such as schema definition files (e.g., `core.schema`), into the main `slapd` server configuration.
`allow` is typically used in OpenLDAP for access control lists, not for including schema files.
`permit` is not a recognized directive for including schema files in OpenLDAP's `slapd.conf`.
`add` is associated with LDAP operations for creating new entries in the directory, not for configuring the `slapd` server to load schema definitions.
Concept tested: OpenLDAP slapd.conf schema inclusion
Source: https://www.openldap.org/doc/admin24/slapdconf2.html
Topics
Community Discussion
No community discussion yet for this question.