Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement