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.
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;
slapdis the daemon that is started, notslapstart.
Concept tested. OpenLDAP slapadd utility operation
Topics
Community Discussion
No community discussion yet for this question.