Open FilipHarald opened 2 years ago
@FilipHarald at the moment, this plugin does not take into account auth-protected DBs, so the errors you are getting are expected. To me, this seems pretty fundamental, so support for this should be added soon. I'll be thinking about what the best way to add this would be and post back here.
I'm considering changing how :Mongoconnect
works: right now it is confusing and the options/combinations are not really documented well or very predictable. Just this morning, I was hung up using it for a little bit (and I wrote it!). I'm considering just changing it to pass its argument unaltered to mongosh
.
The drawback is that this change would be backwards-incompatable. Thoughts? @FilipHarald
OK, I'm not sure I know the implications of that security-wise. It sounds sane to have the interface as similar as possible to mongosh
though.
What goes for backwards-incompatibility that is not an issue for me. @jrop
Alternatively, it would be amazing if we could pass a connection string like:
:Mongoconnect --uri mongodb+srv://username:password@host:port/db_name
Thank you for doing this plugin.
Is there a way to connect to a password protected instance? I have tried two ways:
1
This...
... gives this error...
2
This...
...gives this error...