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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.1, 2.3.0
    • Affects Version/s: 2.2.0
    • Component/s: Tools
    • None
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: