mongo4idea icon indicating copy to clipboard operation
mongo4idea copied to clipboard

Cannot connect with config equivalent to command line

Open lehphyro opened this issue 8 years ago • 4 comments

I can connect to my mongodb server with this command: mongo host:port/admin -u user -p password-with-special-chars-like-@

But I cannot connect with your plugin, it says "{ "ok" : 0.0, "errmsg" : "auth failed", "code" : 18 }".

The configuration I used is as follows:

Server urls: host:port User database: admin Username: user Password: password Auth database: admin Auth. mechanism: all three of them

What am I doing wrong? Thanks

lehphyro avatar Aug 16 '16 11:08 lehphyro

Same here

theminecoder avatar Sep 08 '16 09:09 theminecoder

Code 18 is a login/password issue. As soon as I change one of them instead of a success, I get 18. Only plain characters are in my password, though. In my case, I don't need to specify the "auth database", it's empty. I have to force SCRAM-SHA-1 as I use 3.2.5, default does not work.

odupuy avatar Sep 13 '16 20:09 odupuy

Hi,

Does the latest release 0.9.0 work on your IDE?

dboissier avatar Nov 24 '16 15:11 dboissier

Bonjour David, The plug-in 0.9.2016 on Intellij 2016-3 First tab, host/port entered and primary for the 'read preferences' Second tab, username and password entered (no special characters), auth database entered, SCRAM-SHA-1 selected, the test is OK. It does not work if I pick 'Default'. (unsupport mechanism plain)

If I enter no login/password/Auth.Database on the second tab, with SCRAM-SHA-1 selected, the test is OK too. It also works for 'Default' for the authentication mechanism.

Thanks

odupuy avatar Nov 24 '16 18:11 odupuy