Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-7160

Mongorestore doesn't auth against admin DB when using username and password arguments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • 2.2.0
    • 2.2.1, 2.3.0
    • Tools
    • None
    • ALL

    Description

      The problem is the only way to specify the database to authenticate to is to use the -d parameter, this parameter also means the target database to restore to. And with -d specified, you can only restore single db at time.

      Current work around is to either (1) temporarily turn off auth or (2) add users with write privilege for every database you want to restore.

      Other tools probably have the same issue.

      Attachments

        Issue Links

          Activity

            People

              spencer@mongodb.com Spencer Brody (Inactive)
              randolph@mongodb.com Randolph Tan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: