mongo4idea
mongo4idea copied to clipboard
Cannot connect with config equivalent to command line
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
Same here
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.
Hi,
Does the latest release 0.9.0 work on your IDE?
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