Can't connect remotely?! Certification failed?!
In order to improve the security of remote access, according to the description of MongoDB official website, increased user authentication, local testing through, however, remote access is still alive, whether it is Spring-data-mongo, or Mongovue client, Or Ubuntu under the mongo-clients, are reported Auth failed, is my character have a problem?
Here's a look at the software environment:
1, MongoDB is the 3.0.3 version, known as performance improvement of 95% not only to increase the efficiency of 7 to 10 times times and increase the data compression rate of 80%, but also reduce operation and maintenance costs 95%.
2, because the spring uses the 3.2,spring-data-mongo 1.5.5 version, for Mongo-java-driver for 2.12.5
3. Windows client is using MongoVUE-1.6.9
4, Ubuntu under the simple test is installed through the Apt-get mongo-clients, version 2.4.9
Before opening auth, everything is normal, the data can read and write, open auth, but also only reported Auth failed, all built-in roles added, or not. The middle of all kinds of toss over, and finally I was on another machine on the deployment of the same version of MongoDB, and then the MONGO command remote connection, incredibly pass!!! It's not backwards compatible!
I take a go, because the Mongo-java-driver version is not compatible, to upgrade means that Spring-data-mongo to more than 1.7 version, the spring version to rise to 4.0, think or forget
The pit Daddy MongoDB