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

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: 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.
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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 Horowitz (Inactive)
            Reporter:
            Markus Schirp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: