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.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • Tools
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: