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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.8.0-rc0
    • Fix Version/s: 2.8.0-rc1
    • Component/s: Shell
    • Labels:
      None
    • 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)

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: