-
Type: Bug
-
Resolution: Duplicate
-
Priority: 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.
- duplicates
-
GODRIVER-1021 Specify behavior where connection string contain auth database but no credentials
- Closed