Cannot authenticate to a 2.4 MongoDB using a 2.8 shell

XMLWordPrintableJSON

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

      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
              Reporter:
              Cailin Nelson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: