[SERVER-12561] clusterAuthMode and sslMode allowed in --setParameter Created: 31/Jan/14  Updated: 11/Jul/16  Resolved: 04/Feb/14

Status: Closed
Project: Core Server
Component/s: Usability
Affects Version/s: None
Fix Version/s: 2.6.0-rc0

Type: Bug Priority: Minor - P4
Reporter: Shaun Verch Assignee: Shaun Verch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Operating System: ALL
Participants:

 Description   

The first issue is that "clusterAuthMode" is allowed via the --setParameter option on the command line:

$ ./mongod --sslMode allowSSL --sslPEMKeyFile jstests/libs/server.pem --clusterAuthMode sendKeyFile --setParameter clusterAuthMode=sendX509

Results in the server starting with:

> db.runCommand({"getParameter":1, "clusterAuthMode":1})
{ "clusterAuthMode" : "sendX509", "ok" : 1 }

The next issue is that "sslMode" is allowed via the --setParameter option on the command line, but it's broken for a different reason:

$ ./mongod --setParameter sslMode=allowSSL
BadValue Bad value for parameter "sslMode": Illegal state transition for sslMode, attempt to change from disabled to allowSSL
try './mongod --help' for more information



 Comments   
Comment by Githook User [ 04/Feb/14 ]

Author:

{u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}

Message: SERVER-12561 Disallow clusterAuthMode and sslMode in --setParameter
Branch: master
https://github.com/mongodb/mongo/commit/58e58b77bb5f3bef4a498a640fc55e4f1a416321

Generated at Thu Feb 08 03:28:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.