Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-4375

2.8.0-rc0 server can only be auth'd against with a 2.8.0-rc0 shell

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • v1.3.14, mongodb-3.0
    • manual
    • None
    • 4
    • true

    Description

      There should be a note about this in the release notes
      http://docs.mongodb.org/manual/release-notes/2.8/

      $ mongo --port 55000
      MongoDB shell version: 2.8.0-rc0
      connecting to: 127.0.0.1:55000/test
      replset:PRIMARY> use admin
      switched to db admin
      replset:PRIMARY> db.auth("user", "password")
      1

      $ mongo --port 55000
      MongoDB shell version: 2.6.5
      connecting to: 127.0.0.1:55000/test
      replset:PRIMARY> use admin
      switched to db admin
      replset:PRIMARY> db.auth("user", "password")
      Error: 18 { ok: 0.0, errmsg: "auth failed", code: 18 }
      0
      replset:PRIMARY> db.auth( { mechanism: "SCRAM-SHA-1", user: "user", password: "password" } )
      Error: 2 SCRAM-SHA-1 mechanism support not compiled into client library.
      0

      There just needs to be a note that if you are running a 2.8 server, you need to auth using a 2.8 shell

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            joanna.cheng@mongodb.com Joanna Cheng
            Jonathan Dahl Jonathan Dahl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 29 weeks ago