nerdexam
CompTIA

LX0-104 · Question #142

When two databases are defined in slapd.conf, which of the following commands will provide a full dump of the second database?

The correct answer is A. slapcat -n 2. To dump the second database when multiple databases are defined in slapd.conf, use slapcat -n 2.

Essential System Services

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

How the community answered

(20 responses)
  • A
    95% (19)
  • D
    5% (1)

Why each option

To dump the second database when multiple databases are defined in `slapd.conf`, use `slapcat -n 2`.

Aslapcat -n 2Correct

The `slapcat -n <db_number>` option allows administrators to select a specific database instance to dump when multiple databases are configured. The `<db_number>` corresponds to the index of the database as defined in the `slapd.conf` file, where '2' would refer to the second database in the configuration order.

Bslapcat -2

`slapcat -2` is not a valid option for specifying the second database; the correct option is `-n` followed by the number.

Cslapcat -database 2

`slapcat -database 2` uses an incorrect option name; the correct option for specifying the database number is `-n`, not `-database`.

Dslap_dumpall -name nameofdatabase

`slap_dumpall` is not a standard OpenLDAP command, and `slapcat` does not use a `-name` option for database selection.

Concept tested: OpenLDAP multi-database dump

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

Topics

#LDAP database#slapcat#data dump

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice