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

Cannot authenticate to a 2.4 MongoDB using a 2.8 shell

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • ALL

      I'm not sure what the philosophy is on backwards compatibility of the shell. This may very well be "Works As Designed".

      [scripts] (master)$ mongo localhost:28000
      MongoDB shell version: 2.8.0-rc0
      connecting to: localhost:28000/test
      > use admin
      switched to db admin
      > db.auth('mms-monitoring-agent','monitoring')
      Error: 8 no such cmd: saslStart
      0
      > ^C
      bye
      [scripts] (master)$ /usr/local/mongo243/bin/mongo localhost:28000
      MongoDB shell version: 2.4.3
      connecting to: localhost:28000/test
      > use admin
      switched to db admin
      > db.auth('mms-monitoring-agent','monitoring')
      1
      > show dbs
      admin	0.203125GB
      config	(empty)
      local	0.078125GB
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            cailin.nelson@mongodb.com Cailin Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: