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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.0
    • Affects Version/s: 2.5.4
    • Component/s: Security
    • Minor Change
    • ALL
    • 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.

      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.

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

              Created:
              Updated:
              Resolved: