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

Support authentication for tools that do not support it. mongo{top,stat} advertise support but do not call auth() anywhere.

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.0
    • Affects Version/s: 2.0.0
    • Component/s: Tools
    • Environment:
      All environments should be affected. Mine is archlinux x86_64.

      Mongodb tools mongotop and mongostat do not support authentication. But they advertise support it in the --help message.

      Triple verified my admin username/password is correct but was unable to connect.
      An strace confirmed there where no authentication attempt.

      After a look at tools/

      {stat,top}

      .cpp I realized authentication advertisement is inherited from base class but auth() is not called anywhere in doRun().

      Since I am not a C++ guy I cannot create a good enough pull request so I opened this issue.

      Feel free to correct me if any of my assumptions are incorrect!

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            mbj Markus Schirp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: