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

Possible to specify both --auth and --noauth for mongod

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.5.4
    • Fix Version/s: 2.6.0
    • Component/s: Security
    • Labels:
    • Backwards Compatibility:
      Minor Change
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      ./mongod --auth --noauth

      expected behavior is to report and error and abort.

      Show
      ./mongod --auth --noauth expected behavior is to report and error and abort.

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sverch Shaun Verch
              Reporter:
              andreas.nilsson Andreas Nilsson
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: