Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-868

Authentication failure when specifying database in connection string

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Blocker - P1 Blocker - P1
    • None
    • Affects Version/s: 1.0.0-rc2
    • Component/s: Authentication
    • None

      I have a MongoDB v3.6.9 cluster. Because the server is only available on private interfaces, access control is not used.

      When I attempt to connect to the cluster via:

      mongodb://192.168.0.1:27017,192.168.0.2:27017/mydatabase?replicaSet=rs0

      This error occurs:

      auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.

      However, when I don't specify the database:

      mongodb://192.168.0.1:27017,192.168.0.2:27017/?replicaSet=rs0

      The connection succeeds. The same connection string (with the database specified) works fine with other drivers.

      Additional notes

      Given that this particular issue has been fixed as of the 1.0.4 release, if you are still seeing the above error the most likely cause is simply that your credentials are incorrect.

            Assignee:
            Unassigned Unassigned
            Reporter:
            caspertech Tom Mettam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: