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

Specifying no database in the URI triggers auth

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.1.12
    • mongo-tools-common
    • None

    Description

      Providing a URI without a database name triggers authentication, which fails:

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

      This is a tools bug that is incorrectly configuring for auth due to picking up the Go driver's connection string default.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: