Skip to content

Issue with Dex and replica set #42

@haydursek

Description

@haydursek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions