nerdexam
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 -2 option is not a valid or standard way to specify the second database with slapcat; the correct option for database number is -n.
  • C. The -database option is not a recognized argument for slapcat to specify a database by number; the -n option is used for this purpose.
  • D. slap_dumpall is not a standard OpenLDAP command for dumping databases, and the syntax -name nameofdatabase is incorrect for this context.

Concept tested. OpenLDAP database dump by number

Reference. https://www.openldap.org/software/man.cgi?query=slapcat&apropos=0&sektion=8&manpath=OpenLDAP+2.4-Release

Topics

#slapcat#OpenLDAP#Database Management#LDAP Service

Community Discussion

No community discussion yet for this question.

Full LFCS PracticeBrowse All LFCS Questions