nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #171

LFCS Question #171: Real Exam Question with Answer & Explanation

The correct answer is A: slapindex must be run after slapadd, because the slapadd operation will not write to index files.. When importing entries with slapadd, the slapd daemon must be stopped to prevent database corruption, and slapindex must be run afterward to update indexes, as slapadd bypasses normal indexing and replication processes.

Submitted by hans_de· Apr 18, 2026Operation of Running Systems

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.

Explanation

When importing entries with slapadd, the slapd daemon must be stopped to prevent database corruption, and slapindex must be run afterward to update indexes, as slapadd bypasses normal indexing and replication processes.

Common mistakes.

  • C. Slave servers are configured for replication via OpenLDAP's replication mechanisms, not by being listed within the LDIF file itself.
  • E. slapstart is not a standard command for managing OpenLDAP entries; slapd is the daemon that is started, not slapstart.

Concept tested. OpenLDAP slapadd utility operation

Reference. http://www.openldap.org/doc/admin/slapadd.html

Topics

#OpenLDAP#slapadd#Indexing#Replication

Community Discussion

No community discussion yet for this question.

Full LFCS PracticeBrowse All LFCS Questions