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

remove "noauth" global in code, replace with "auth"

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.0
    • Affects Version/s: None
    • Component/s: Internal Code, Security
    • Labels:
      None

      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.

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: