Ricky
Ricky

Reputation: 295

mongodb 3 MONGODB-CR authentication

Is it possibile to create Users with the old MONGODB-CR User authentication in mongo 3.0.2?

Actually I've only one User created by default with the new SCRAM-SHA-1 credential authentication.

 db.system.users.find({ "credentials.SCRAM-SHA-1" : { $exists: true}}, { user: 1, db: 1})

{ "_id" : "admin.siteUserAdmin", "user" : "siteUserAdmin", "db" : "admin" }

and:

 db.system.users.find({ "credentials.MONGODB-CR" : { $exists: true}}, { user: 1, db: 1})

is empty.

Upvotes: 0

Views: 1214

Answers (1)

Christian Wyss
Christian Wyss

Reputation: 11

This did the trick for me:

var schema = db.system.version.findOne({"_id" : "authSchema"})
schema.currentVersion = 3
db.system.version.save(schema)

(from https://jira.mongodb.org/browse/SERVER-17459)

Upvotes: 1

Related Questions