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

Specifying default database in URI triggers auth failure

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: