Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-10442

Mongodump defaults to "admin" database for authentication

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • None
    • tools
    • None

    Description

      The documentation for mongodump's --authenticationDatabase states that if an authentication database is not specified, mongodump uses the database being dumped. However, you can run mongodump without specifying a specific database to be dumped. In this scenario, mongodump uses the "admin" database for authentication credentials.

      Please add a line to the documentation saying something like:

      If you do not specify an authentication database, mongodump assumes that the database specified to export holds the user’s credentials.

      If you do not specify an authentication database or a specific database to be dumped, mongodump assumes that the user's credentials are located within the admin database.

      Attachments

        Activity

          People

            allison.moore@mongodb.com Allison Reinheimer Moore
            daniel.hatcher@mongodb.com Danny Hatcher (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6 years, 30 weeks, 6 days ago