Skip to content
kyrcha edited this page Feb 14, 2013 · 4 revisions

Procedure

  • The administrator, preferably using a mongodb management tool like rockmongo, adds the username field of the user in the users collection.
  • The entry gets an _id.
  • The administrator calculates the md5 hash using the user's preferred password and the _id as salt. A utility will be provided for that.
  • The administrator updates the entry adding the password field and the produced md5 hash.

Example entry

 {
 "_id": ObjectId("51064001cc80000bf13fde00"),
 "password": "$1$BgzfDzBn$julyo8xf8g8pPJ.54Fzkd0",
 "username": "name" 
 }
Clone this wiki locally