SHARE
TWEET

Untitled

a guest Jun 18th, 2019 39 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. > db
  2. mydb
  3. > db.getUsers()
  4. [
  5.     {
  6.         "_id"  : "mydb.mongo",
  7.         "user" : "mongo",
  8.         "db"   : "mydb",
  9.         "roles" : [
  10.             {
  11.             "role" : "dbOwner",
  12.             "db" : "mydb"
  13.             }
  14.         ],
  15.         "mechanisms" : [
  16.             "SCRAM-SHA-1",
  17.             "SCRAM-SHA-256"
  18.         ]
  19.     }
  20. ]
  21.  
  22.  
  23.  > db.changeUserPassword("mongo", "mongo_n3w_p4ss");
  24. 2019-05-22T20:58:10.128-0500 E QUERY    [thread1] Error: Updating user failed: Use of SCRAM-SHA-256 requires undigested passwords :
  25. _getErrorWithCode@src/mongo/shell/utils.js:25:13
  26. DB.prototype.updateUser@src/mongo/shell/db.js:1487:15
  27. DB.prototype.changeUserPassword@src/mongo/shell/db.js:1491:9
  28. @(shell):1:1
  29. > db.version()
  30. 4.0.5
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top