Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. //after creating of the user, MongoDB process should be started with authentication support
  2. // add following lines to your mongodb config file:
  3. // security:
  4. // authorization: "enabled"
  5. // Note: config file has YAML, it is pretty sensitive to tabs vs spaces - so in some cases MongoDB process cannot be started because some characters are wrong (make sure there are spaces instead of tabs)
  6.  
  7. var userName = "msa";
  8. var passWord = "Sitecore12345";
  9.  
  10. var analyticsDB = "basicsitecore_analytics"
  11. var trackingContactDB = "basicsitecore_tracking_contact"
  12. var trackingLiveDB = "basicsitecore_tracking_live"
  13. var trackingHistoryDB = "basicsitecore_tracking_history"
  14.  
  15. use basicsitecore_analytics
  16. db.createUser(
  17. {
  18. user: userName,
  19. pwd: passWord,
  20. roles: [ { role: "readWrite", db: analyticsDB } ]
  21. }
  22. );
  23.  
  24. use basicsitecore_tracking_contact
  25. db.createUser(
  26. {
  27. user: userName,
  28. pwd: passWord,
  29. roles: [ { role: "readWrite", db: trackingContactDB} ]
  30. }
  31. );
  32.  
  33. use basicsitecore_tracking_live
  34. db.createUser(
  35. {
  36. user: userName,
  37. pwd: passWord,
  38. roles: [ { role: "readWrite", db: trackingLiveDB} ]
  39. }
  40. );
  41.  
  42. use basicsitecore_tracking_history
  43.  
  44. db.createUser(
  45. {
  46. user: userName,
  47. pwd: passWord,
  48. roles: [ { role: "readWrite", db: trackingHistoryDB } ]
  49. }
  50. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement