Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

authDb support #28

Open
iMarvinS opened this issue Jul 23, 2015 · 1 comment
Open

authDb support #28

iMarvinS opened this issue Jul 23, 2015 · 1 comment

Comments

@iMarvinS
Copy link

I tried connecting to a db ("called mydB") by using a authDb (called "admin") but I cannot establish a successfull connection.
My connection string is the folllowing one:

mydb_adminuser:asecurepassword@localhost:20900/myDb?authSource=admin

This is the result which is outputed by db ping command:

 { [MongoError: auth failed]
  name: 'MongoError',
  message: 'auth failed',
  ok: 0,
  errmsg: 'auth failed',
  code: 18 }

The authSource parameter is a defined standard in monodb core driver but somehow it doesn´t work in
promised-mongo.
The same connection string (with real credentials) works perfectly in mongoose.

@adamatti
Copy link

Is there a fix for it? I'm also having this issue

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

No branches or pull requests

2 participants