Description
mongod 3.2.7 64-bit on Windows 10 x64.
The `createUser()` command creates users that cannot be authenticated (`SCRAM-SHA-1 authentication failed, storedKey mismatch`)
> db.createUser({createUser:"test",pwd:"test",roles:["dbAdmin"]})
|
Successfully added user: { "createUser" : "test", "roles" : [ "dbAdmin" ] }
|
>
|
> db.auth("test","test")
|
Error: Authentication failed.
|
0
|
>
|
The only way to get the users to authenticate is to subsequently change their password:
> db.createUser({createUser:"test",pwd:"test",roles:["dbAdmin"]})
|
Successfully added user: { "createUser" : "test", "roles" : [ "dbAdmin" ] }
|
> db.changeUserPassword("test","test")
|
>
|
> db.auth("test","test")
|
1
|
>
|