Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2292

Specifying default database in URI triggers auth failure

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.0
    • Affects Version/s: 4.1.11
    • Component/s: mongo-tools-common
    • None

      Providing a database name in the URI triggers authentication, which will generally fail because either auth is not enabled on the mongod or the username and password were not provided:

      $ ./bin/mongodump --uri="mongodb://localhost:27017/test"
      2019-05-15T14:06:25.607-0400    Failed: error creating intents to dump: error getting collections for database `test`: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed. 

      This is now prohibited by the auth spec (see DRIVERS-637). We need to revendor the Go driver when GODRIVER-1021 is fixed.

            Assignee:
            david.golden@mongodb.com David Golden
            Reporter:
            david.golden@mongodb.com David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: