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

Specifying no database in the URI triggers auth

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

      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.

            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: