[SERVER-8938] remove "noauth" global in code, replace with "auth" Created: 11/Mar/13 Updated: 11/Jul/16 Resolved: 13/Mar/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code, Security |
| Affects Version/s: | None |
| Fix Version/s: | 2.5.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Spencer Brody (Inactive) | Assignee: | Spencer Brody (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
There is a global variable in the server code called "noauth" which is true by default and false if the server is running with security enabled by --auth or --keyFile. This results in a lot of if (! noauth) blocks. Would be better to remove the negative and make the global called "auth". As part of this, should also make it not a global anymore, but an accessor on static internal state in the AuthorizationManager. |
| Comments |
| Comment by auto [ 13/Mar/13 ] |
|
Author: {u'date': u'2013-03-13T21:30:01Z', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}Message: |