[SERVER-12152] Possible to specify both --auth and --noauth for mongod Created: 17/Dec/13 Updated: 11/Jul/16 Resolved: 21/May/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Security |
| Affects Version/s: | 2.5.4 |
| Fix Version/s: | 2.6.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Andreas Nilsson | Assignee: | Shaun Verch |
| Resolution: | Done | Votes: | 0 |
| Labels: | 26qa | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Minor Change | ||||||||
| Operating System: | ALL | ||||||||
| Steps To Reproduce: | ./mongod --auth --noauth expected behavior is to report and error and abort. |
||||||||
| Participants: | |||||||||
| Description |
|
The command line options --noauth and --auth are inconsistent and should be disallowed together like for instance --journal and --nojournal. Since auth is off by default I am not sure why the --noauth flag is even present. The only thing it does is to set auth disabled globally which it is by default, so it has no effect. However if we choose to make auth default it will come in handy so we should probably keep it around. |
| Comments |
| Comment by Shaun Verch [ 21/May/14 ] | ||||||
|
Fixed as of 2.6.0:
|