-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: manual
-
Labels:None
There should be a note about this in the release notes
http://docs.mongodb.org/manual/release-notes/2.8/
$ mongo --port 55000 MongoDB shell version: 2.8.0-rc0 connecting to: 127.0.0.1:55000/test replset:PRIMARY> use admin switched to db admin replset:PRIMARY> db.auth("user", "password") 1
$ mongo --port 55000 MongoDB shell version: 2.6.5 connecting to: 127.0.0.1:55000/test replset:PRIMARY> use admin switched to db admin replset:PRIMARY> db.auth("user", "password") Error: 18 { ok: 0.0, errmsg: "auth failed", code: 18 } 0 replset:PRIMARY> db.auth( { mechanism: "SCRAM-SHA-1", user: "user", password: "password" } ) Error: 2 SCRAM-SHA-1 mechanism support not compiled into client library. 0
There just needs to be a note that if you are running a 2.8 server, you need to auth using a 2.8 shell