Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connecting to user/password admin db using string does not work #223

Open
ssnyder opened this issue Nov 17, 2020 · 6 comments
Open

connecting to user/password admin db using string does not work #223

ssnyder opened this issue Nov 17, 2020 · 6 comments

Comments

@ssnyder
Copy link

ssnyder commented Nov 17, 2020

Hi,

I have set up my db using simple userid/password using SCRAM-SHA-1 using the admin db to do the authentication.

The connection string in my settings.json is this: (test does show up in the mongoDB Runner extension, but never connects)

    "mongoRunner": {
        "connections": [
            {
                "name": "test",
                "url": "mongodb://myUseridWithReadOnlyAccess:[email protected]:27017/?authSource=admin&readPreference=primary&ssl=false"
            }
        ]
    }

Help would be appreciated....

@zhaoyi0113
Copy link
Owner

Sorry for late response. Could you let me know the version of mongodb server you are connecting to? Do you have other way to connect to your db server without using authSource?

@ssnyder
Copy link
Author

ssnyder commented Nov 29, 2020

We are currently using version 3.0 I believe (we hope to update to 3.6 or higher soon, but no target date as of yet). For security purposes, we have disabled any other method of logging in at this time.

@zhaoyi0113
Copy link
Owner

3.0 is a very old version and I didn't test it. There may be a different configuration for 3.0 in terms of ssl. The mongodb driver version I am using is also not the one for 3.0. Is it possible to upgrade your db server?

@ssnyder
Copy link
Author

ssnyder commented Dec 23, 2020

What is the oldest version you tested on? We have recently updated to 3.2 .... yes, we hope to keep updating, but are being careful for multiple reasons.

@zhaoyi0113
Copy link
Owner

Yes, 3.2 should work. Are you saying it doesn't work in 3.2?

@ssnyder
Copy link
Author

ssnyder commented Feb 24, 2021

Sorry - it took me so long to get back to this - and yes, I'm saying it did not work in 3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants