[SERVER-3871] Support authentication for tools that do not support it. mongo{top,stat} advertise support but do not call auth() anywhere. Created: 15/Sep/11  Updated: 11/Jul/16  Resolved: 23/Sep/11

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 2.0.0
Fix Version/s: 2.1.0

Type: New Feature Priority: Major - P3
Reporter: Markus Schirp Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: rn
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

All environments should be affected. Mine is archlinux x86_64.


Issue Links:
Related
Participants:

 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!



 Comments   
Comment by Markus Schirp [ 15/Sep/11 ]

To correct myself. auth() is not called in anywhere in top.cpp or stat.cpp. Please ignore my reference to doRun().

Generated at Thu Feb 08 03:04:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.