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

Specifying no database in the URI triggers auth

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.12
    • Component/s: mongo-tools-common
    • Labels:
      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

            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: