When a user has SCRAM-SHA-256 credentials, the mongo shell negotiates the SASL authentication mechanism when no explicit authentication mechanism is given. See SERVER-32977.
With a mongod version 4.0.5 with only the SCRAM-SHA-256 authentication mechanism enabled, the mongo shell version 4.0.4 successfully authenticates but the mongo shell version 4.0.5 does not. This appears to be a regression in 4.0.5.
The workaround is to specify the authentication mechanism as SCRAM-SHA-256.
- depends on
-
SERVER-39178 Negotiate SCRAM mechanism in MongoURI::connect()
- Closed
- is duplicated by
-
SERVER-39178 Negotiate SCRAM mechanism in MongoURI::connect()
- Closed