[SERVER-16167] 2.8.0-rc0 shell can't auth to a 2.4 server Created: 15/Nov/14  Updated: 23/Jan/15  Resolved: 17/Nov/14

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.8.0-rc0
Fix Version/s: 2.8.0-rc1

Type: Bug Priority: Major - P3
Reporter: Joanna Cheng Assignee: Andreas Nilsson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-16290 Cannot authenticate to a 2.4 MongoDB ... Closed
Related
related to SERVER-7596 Support SCRAM-SHA-1 SASL Mechanism Closed
related to DRIVERS-166 Implement the SCRAM-SHA-1 SASL Mechanism Closed
Tested
Operating System: ALL
Steps To Reproduce:
  1. Start 2.4 mongod with auth
  2. Connect and auth with 2.6 shell (works)
  3. Connect and auth with 2.8.0-rc0 shell (fails)
Participants:

 Description   

Looks like the 2.8.0-rc0 shell has different auth procedures?

$ mongo
MongoDB shell version: 2.8.0-rc0
connecting to: test
> use admin
switched to db admin
> db.auth("user", "pass")
Error: 8 no such cmd: saslStart
0
> db.version()
2.4.8

$ mongo
MongoDB shell version: 2.6.5
connecting to: test
> use admin
switched to db admin
> db.auth("user", "pass")
1
> db.version()
2.4.8

I think it should fall back to legacy behaviour if the saslStart command is not found



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

Author:

{u'username': u'agralius', u'name': u'Andreas Nilsson', u'email': u'andreas.nilsson@10gen.com'}

Message: SERVER-16167 Enable 2.8 shell to auth to 2.4 server
Branch: master
https://github.com/mongodb/mongo/commit/e98a99d0a51b14dab253ec84eec9aa41f163c517

Generated at Thu Feb 08 03:40:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.