Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-2242

Wrong hash of user password stored in MongoDB

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Do
    • None
    • None
    • mongodb
    • None
    • OS: Ubuntu 14.04 LTS
      Puppet: 4.2.0
      MongoDB: 2.4.9 (default version packaged for Ubuntu 14.04 LTS)

    Description

      Hello,

      In short, when using the MongoDB version 2.4.9, the default one installed on a Ubuntu 14.04, it is not possible to set the password of a user properly.

      If you pass the password in clear or its hashed version to the password or password_hash of mongodb::db, the module will always record the hash of the hash in MongoDB. As a consequence, the password that works is always the hashed version.
      Another consequence is that when applying the manifests, it always says that the hash of the hash is replaced by the hash, if you follow me.

      Notice: /Stage[main]/Main/Node[cubitus]/Mongodb::Db[testdb]/Mongodb_user[User user1 on db testdb]/password_hash: password_hash changed '8c40df5a148bde5282d6621a3debd170' to 'a15fbfca5e3a758be80ceaf42458bcd8'
      

      Please feel free to try using a clean Ubuntu 14.04 LTS and this repo: https://github.com/pcart-grandjean/mongotest

      Regards,
      Pierre

      Attachments

        Activity

          People

            Unassigned Unassigned
            timok Timok Kahn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support