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.
Question
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)- A80% (16)
- C15% (3)
- E5% (1)
Why each option
This question focuses on the operational procedures and implications of using the `slapadd` command for populating an OpenLDAP directory.
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.
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.
Slave servers are configured within the replication setup (e.g., `slapd.conf` or dynamic configuration), not listed within the LDIF file itself.
`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.
`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
Community Discussion
No community discussion yet for this question.