[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: SERVER-8938 Remove noauth global from code, move into AuthorizationManager
Branch: master
https://github.com/mongodb/mongo/commit/275535c2f8d17f51edb1dfb3503c69686e7f2776

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