adminMongo icon indicating copy to clipboard operation
adminMongo copied to clipboard

create user fial

Open Jonny-china opened this issue 7 years ago • 4 comments

MongoError: Use of SCRAM-SHA-256 requires undigested passwords

image

Jonny-china avatar Sep 05 '18 06:09 Jonny-china

Hi,

Same problem here.

If MongoDB is version 4, we should pass parameter passwordDigestor: "server" to avoid this error.

See https://docs.mongodb.com/manual/reference/method/db.createUser/

Bacto avatar Oct 18 '18 15:10 Bacto

Did not see this issue posted, but but dug more into it - presenting a dirty fix - in Issue #227 . The Problem would best be addressed in the node-mongo-native driver but they reject further contributions to the 2.2-branch. See referenced issue and linked pull request there for further details.

bitmeal avatar Oct 24 '18 19:10 bitmeal

I listed a temp fix here. The TL;DR is you replace one line in the package.json with the following.

"mongodb": "bitmeal/node-mongodb-native#2.2",

jcc10 avatar Jun 27 '19 18:06 jcc10

This is still not fixed. I changed the dependency in the package.json like @jcc10 mentioned. At line 65 I changed,

    "mongodb": "^2.2.4",

to,

    "mongodb": "bitmeal/node-mongodb-native#2.2",

With success at creating users. I don't understand what the ultimate issue is, but I am using mongodb 4.4 which is the latest when writing this and the admin panel should work with the latest version. Should we simply just change the package.json or can we change the db create user code to support the hash type?

Tsangares avatar Nov 20 '20 23:11 Tsangares