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

Can't write to local database on a secondary if using --auth

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.1
    • Component/s: Replication
    • None

      Without --auth:

      connecting [with auth] to: localhost:27888/admin
      testReplSet:SECONDARY> use local
      switched to db local
      testReplSet:SECONDARY> db.y.save(

      {"whee":1}

      )
      testReplSet:SECONDARY> db.y.find()

      { "_id" : ObjectId("4ebced0bf3ff493b2fe7c468"), "whee" : 1 }

      With --auth:

      connecting [with auth] to: localhost:27888/flomeromity
      testReplSet:SECONDARY> use local
      switched to db local
      testReplSet:SECONDARY> db.z.save(

      {"whee":1}

      )
      unauthorized
      testReplSet:SECONDARY> db.z.find()
      error: {
      "$err" : "unauthorized db:local lock type:-1 client:127.0.0.1",
      "code" : 10057
      }

            Assignee:
            kristina Kristina Chodorow (Inactive)
            Reporter:
            cwestin Chris Westin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: