nerdexam
Linux_Foundation

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.

Submitted by fatema_kw· Apr 18, 2026Service Configuration

Question

Which of the following is the correct syntax for including a schema file in slapd.conf?

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)
  • A
    92% (36)
  • B
    3% (1)
  • C
    5% (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.

Ainclude /usr/local/etc/openldap/schema/core.schemaCorrect

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.

Ballow /usr/local/etc/openldap/schema/core.schema

`allow` is typically used in OpenLDAP for access control lists, not for including schema files.

Cpermit /usr/local/etc/openldap/schema/core.schema

`permit` is not a recognized directive for including schema files in OpenLDAP's `slapd.conf`.

Dadd /usr/local/etc/openldap/schema/core.schema

`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

#OpenLDAP#LDAP configuration#slapd.conf#schema files

Community Discussion

No community discussion yet for this question.

Full LFCS Practice