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

Issue with Dex and replica set #42

Open
haydursek opened this issue Dec 5, 2016 · 0 comments
Open

Issue with Dex and replica set #42

haydursek opened this issue Dec 5, 2016 · 0 comments

Comments

@haydursek
Copy link

haydursek commented Dec 5, 2016

I am having an issue running dex against a replica set. I am running it on the server hosting the primary and have tried using multiple variations of the the connection string for mongodb, using a user defined in the admin db, using a user defined in the local db i want to run dex against, using the proper replica set connection string requried by mongo, and just trying to connect as localhost, and all result in 'OperationFailure: Authentication failed.. Please see below example below :

 dex -n 'mydb.*' -p mongodb://myuser:mypwd@127.0.0.1/mydb?authSource=admin

 dex -n 'mydb.*' -p mongodb://myuser:mypwd@localhost/mydb?authSource=admin

dex -n 'mydb.*' -p mongodb://myuser:mypwd@*.*.*.*:27017,*.*.*.*:27017,*.*.*.*:27017/mydb?authSource=admin&replicaSet=rs1
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

1 participant