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.

    XMLWordPrintable

    Details

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

      Description

      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!

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: