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

changing clusterAuthMode to sendKeyFile does not reset authParams

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.0-rc0
    • Affects Version/s: 2.5.5
    • Component/s: Security
    • Fully Compatible
    • ALL

      MongoDB shell version: 2.5.6-pre-
      connecting to: localhost:30001/test
      "sv.local:30001"
      {
      	"set" : "sslTest",
      	"date" : ISODate("2014-02-14T21:19:32Z"),
      	"myState" : 2,
      	"members" : [
      		{
      			"_id" : 0,
      			"name" : "sv.local:30001",
      			"health" : 1,
      			"state" : 2,
      			"stateStr" : "SECONDARY",
      			"uptime" : 9868,
      			"optime" : Timestamp(1392409631, 1),
      			"optimeDate" : ISODate("2014-02-14T20:27:11Z"),
      			"self" : true
      		},
      		{
      			"_id" : 1,
      			"name" : "sv.local:30002",
      			"health" : 0,
      			"state" : 6,
      			"stateStr" : "(not reachable/healthy)",
      			"uptime" : 9866,
      			"optime" : Timestamp(1392402571, 1),
      			"optimeDate" : ISODate("2014-02-14T18:29:31Z"),
      			"lastHeartbeat" : ISODate("2014-02-14T21:19:31Z"),
      			"lastHeartbeatRecv" : ISODate("2014-02-14T20:57:16Z"),
      			"pingMs" : 0,
      			"lastHeartbeatMessage" : "syncing to: sv.local:30001",
      			"authenticated" : false,
      			"syncingTo" : "sv.local:30001"
      		},
      		{
      			"_id" : 2,
      			"name" : "sv.local:30003",
      			"health" : 1,
      			"state" : 3,
      			"stateStr" : "RECOVERING",
      			"uptime" : 33,
      			"optime" : Timestamp(1392409631, 1),
      			"optimeDate" : ISODate("2014-02-14T20:27:11Z"),
      			"lastHeartbeat" : ISODate("2014-02-14T21:19:31Z"),
      			"lastHeartbeatRecv" : ISODate("2014-02-14T20:57:16Z"),
      			"pingMs" : 0
      		}
      	],
      	"ok" : 1
      }
      { "sslMode" : "allowSSL", "ok" : 1 }
      { "clusterAuthMode" : "x509", "ok" : 1 }
      MongoDB shell version: 2.5.6-pre-
      connecting to: localhost:30002/test
      "sv.local:30002"
      {
      	"set" : "sslTest",
      	"date" : ISODate("2014-02-14T21:19:32Z"),
      	"myState" : 2,
      	"members" : [
      		{
      			"_id" : 0,
      			"name" : "sv.local:30001",
      			"health" : 0,
      			"state" : 6,
      			"stateStr" : "(not reachable/healthy)",
      			"uptime" : 9868,
      			"optime" : Timestamp(1392409631, 1),
      			"optimeDate" : ISODate("2014-02-14T20:27:11Z"),
      			"lastHeartbeat" : ISODate("2014-02-14T21:19:30Z"),
      			"lastHeartbeatRecv" : ISODate("2014-02-14T18:36:17Z"),
      			"pingMs" : 0,
      			"authenticated" : false,
      			"syncingTo" : "sv.local:30003"
      		},
      		{
      			"_id" : 1,
      			"name" : "sv.local:30002",
      			"health" : 1,
      			"state" : 2,
      			"stateStr" : "SECONDARY",
      			"uptime" : 9868,
      			"optime" : Timestamp(1392409631, 1),
      			"optimeDate" : ISODate("2014-02-14T20:27:11Z"),
      			"self" : true
      		},
      		{
      			"_id" : 2,
      			"name" : "sv.local:30003",
      			"health" : 1,
      			"state" : 3,
      			"stateStr" : "RECOVERING",
      			"uptime" : 35,
      			"optime" : Timestamp(1392409631, 1),
      			"optimeDate" : ISODate("2014-02-14T20:27:11Z"),
      			"lastHeartbeat" : ISODate("2014-02-14T21:19:31Z"),
      			"lastHeartbeatRecv" : ISODate("2014-02-14T18:36:02Z"),
      			"pingMs" : 0
      		}
      	],
      	"ok" : 1
      }
      { "sslMode" : "allowSSL", "ok" : 1 }
      { "clusterAuthMode" : "x509", "ok" : 1 }
      MongoDB shell version: 2.5.6-pre-
      connecting to: localhost:30003/test
      "sv.local:30003"
      {
      	"set" : "sslTest",
      	"date" : ISODate("2014-02-14T21:19:33Z"),
      	"myState" : 3,
      	"members" : [
      		{
      			"_id" : 0,
      			"name" : "sv.local:30001",
      			"health" : 0,
      			"state" : 6,
      			"stateStr" : "(not reachable/healthy)",
      			"uptime" : 0,
      			"optime" : Timestamp(0, 0),
      			"optimeDate" : ISODate("1970-01-01T00:00:00Z"),
      			"lastHeartbeat" : ISODate("2014-02-14T21:19:33Z"),
      			"lastHeartbeatRecv" : ISODate("2014-02-14T21:19:33Z"),
      			"pingMs" : 0,
      			"authenticated" : false
      		},
      		{
      			"_id" : 1,
      			"name" : "sv.local:30002",
      			"health" : 0,
      			"state" : 6,
      			"stateStr" : "(not reachable/healthy)",
      			"uptime" : 0,
      			"optime" : Timestamp(0, 0),
      			"optimeDate" : ISODate("1970-01-01T00:00:00Z"),
      			"lastHeartbeat" : ISODate("2014-02-14T21:19:33Z"),
      			"lastHeartbeatRecv" : ISODate("2014-02-14T21:19:31Z"),
      			"pingMs" : 0,
      			"authenticated" : false
      		},
      		{
      			"_id" : 2,
      			"name" : "sv.local:30003",
      			"health" : 1,
      			"state" : 3,
      			"stateStr" : "RECOVERING",
      			"uptime" : 36,
      			"optime" : Timestamp(1392409631, 1),
      			"optimeDate" : ISODate("2014-02-14T20:27:11Z"),
      			"self" : true
      		}
      	],
      	"ok" : 1
      }
      { "sslMode" : "allowSSL", "ok" : 1 }
      { "clusterAuthMode" : "keyFile", "ok" : 1 }
      

            Assignee:
            andreas.nilsson Andreas Nilsson
            Reporter:
            sverch Shaun Verch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: