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.
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_allis not a recognized OpenLDAP command for refreshing the database after an offline addition. - C.
ldaprefresh_allis not a standard OpenLDAP command; no such utility exists to refresh a running LDAP server's database in this manner. - D. While
slapindexcan rebuild indexes,slap_vacuumis not a standard OpenLDAP tool, and the core problem withslapaddis its requirement for the server to be offline, rather than an indexing or defragmentation issue.
Concept tested. OpenLDAP slapadd usage
Topics
Community Discussion
No community discussion yet for this question.