nerdexam
CompTIA

LX0-104 · Question #171

When importing the contents of one directory into another, the administrator is adding entries with the slapadd command. Which of the following statements are true? (Choose THREE correct answers.)

The correct answer is A. slapindex must be run after slapadd, because the slapadd operation will not write to index files. B. The slapd process must be stopped before running slapadd. D. The changes in the LDIF file will not be replicated with slurpd.. This question focuses on the operational procedures and implications of using the slapadd command for populating an OpenLDAP directory.

Administrative Tasks

Question

When importing the contents of one directory into another, the administrator is adding entries with the slapadd command. Which of the following statements are true? (Choose THREE correct answers.)

Options

  • Aslapindex must be run after slapadd, because the slapadd operation will not write to index files.
  • BThe slapd process must be stopped before running slapadd.
  • CAll slave servers must be listed in the LDIF file for the entries to be replicated.
  • DThe changes in the LDIF file will not be replicated with slurpd.
  • Eslapstart must be run after creating the entries.

How the community answered

(20 responses)
  • A
    80% (16)
  • C
    15% (3)
  • E
    5% (1)

Why each option

This question focuses on the operational procedures and implications of using the `slapadd` command for populating an OpenLDAP directory.

Aslapindex must be run after slapadd, because the slapadd operation will not write to index files.Correct

The `slapadd` command directly writes to the LDAP database files but bypasses the normal indexing mechanisms, so `slapindex` is required afterward to build or update the indexes for efficient searching.

BThe slapd process must be stopped before running slapadd.Correct

The `slapd` daemon must be stopped before running `slapadd` because `slapadd` directly manipulates the database files, and concurrent access by `slapd` could lead to database corruption or inconsistencies.

CAll slave servers must be listed in the LDIF file for the entries to be replicated.

Slave servers are configured within the replication setup (e.g., `slapd.conf` or dynamic configuration), not listed within the LDIF file itself.

DThe changes in the LDIF file will not be replicated with slurpd.Correct

`slapadd` directly modifies the backend database, bypassing the LDAP protocol and replication mechanisms like `slurpd` (used in older OpenLDAP versions); thus, changes made with `slapadd` are not automatically replicated to other servers.

Eslapstart must be run after creating the entries.

`slapstart` is not a standard command for OpenLDAP; typically, the `slapd` daemon is started directly, often via a service manager, after `slapadd` and `slapindex` complete.

Concept tested: OpenLDAP slapadd utility operation and prerequisites

Source: https://www.openldap.org/doc/admin24/database.html

Topics

#slapadd#OpenLDAP administration#LDAP replication#LDAP indexes

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice