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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: 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)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 (Inactive)
              Reporter:
              Joanna Cheng
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: