mongo-sync icon indicating copy to clipboard operation
mongo-sync copied to clipboard

Mongo auth

Open lschans opened this issue 10 years ago • 3 comments

Authentication should be supported. credentials can be split from the server if you enter server address like username:password@server

lschans avatar Feb 16 '15 19:02 lschans

I think it should be as simple as adding the line below here.

uri_decode_auth: true,

Can you test and send a pull request if it works?

olegp avatar Feb 16 '15 20:02 olegp

Sure, I will test it this evening and make the PR.

lschans avatar Feb 17 '15 09:02 lschans

Hi Oleg,

It wasn't that simple after all, I tried 2 different methods of connecting to the database use username and password and they both didn't work. One of them did connect to the server but gave me an error about permissions to query the database.

When I use the native driver for mongo both do work, and I am able to query.

I am a bit confused at the moment and will look further into the problem to provide a solid solution.

lschans avatar Feb 18 '15 10:02 lschans