Linux_FoundationLinux_Foundation
LFCS · Question #142
LFCS Question #142: Real Exam Question with Answer & Explanation
The correct answer is A: slapcat -n 2. To dump a specific database in OpenLDAP when multiple are configured, the slapcat command is used with the -n option followed by the database number.
Submitted by diego_uy· Apr 18, 2026Service Configuration
Question
When two databases are defined in slapd.conf, which of the following commands will provide a full dump of the second database?
Options
- Aslapcat -n 2
- Bslapcat -2
- Cslapcat -database 2
- Dslap_dumpall -name nameofdatabase
Explanation
To dump a specific database in OpenLDAP when multiple are configured, the slapcat command is used with the -n option followed by the database number.
Common mistakes.
- B. The
-2option is not a valid or standard way to specify the second database withslapcat; the correct option for database number is-n. - C. The
-databaseoption is not a recognized argument forslapcatto specify a database by number; the-noption is used for this purpose. - D.
slap_dumpallis not a standard OpenLDAP command for dumping databases, and the syntax-name nameofdatabaseis incorrect for this context.
Concept tested. OpenLDAP database dump by number
Topics
#slapcat#OpenLDAP#Database Management#LDAP Service
Community Discussion
No community discussion yet for this question.