[DOCS-4375] 2.8.0-rc0 server can only be auth'd against with a 2.8.0-rc0 shell Created: 15/Nov/14  Updated: 16/Mar/15  Resolved: 18/Nov/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.14, mongodb-3.0

Type: Improvement Priority: Major - P3
Reporter: Joanna Cheng Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 9 years, 9 weeks ago

 Description   

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



 Comments   
Comment by Githook User [ 17/Dec/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-4375: mongo shell with auth compatibility
Branch: master
https://github.com/mongodb/docs/commit/a6426590cb35cef671040cd35752ef4dbdc02337

Generated at Thu Feb 08 07:47:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.