nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #164

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

The correct answer is A: Stop the slapd process and add the files again with slapadd.. If slapadd entries are not visible after addition, the slapd process must be stopped before running slapadd again, and then restarted for the new entries to be correctly recognized.

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

Question

An administrator is adding several LDIF files to the directory with slapadd, and the new entries are not displayed when ldapsearch is used. Assuming that there is no database corruption, what is the most appropriate solution to the problem?

Options

  • AStop the slapd process and add the files again with slapadd.
  • BRun slaprefresh_all.
  • CRun ldaprefresh_all.
  • DStop the slapd process, run slapindex, and then correct the entries using slap_vacuum.

Explanation

If slapadd entries are not visible after addition, the slapd process must be stopped before running slapadd again, and then restarted for the new entries to be correctly recognized.

Common mistakes.

  • B. slaprefresh_all is not a recognized OpenLDAP command for refreshing the database after an offline addition.
  • C. ldaprefresh_all is not a standard OpenLDAP command; no such utility exists to refresh a running LDAP server's database in this manner.
  • D. While slapindex can rebuild indexes, slap_vacuum is not a standard OpenLDAP tool, and the core problem with slapadd is its requirement for the server to be offline, rather than an indexing or defragmentation issue.

Concept tested. OpenLDAP slapadd usage

Topics

#LDAP#slapadd#slapd#Database consistency

Community Discussion

No community discussion yet for this question.

Full LFCS PracticeBrowse All LFCS Questions