Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-16167

2.8.0-rc0 shell can't auth to a 2.4 server

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc1
    • Affects Version/s: 2.8.0-rc0
    • Component/s: Shell
    • None
    • ALL
      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)

      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

            Assignee:
            andreas.nilsson Andreas Nilsson
            Reporter:
            joanna.cheng@mongodb.com Joanna Cheng
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: