Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-211

jruby String::crypt gives the wrong hash

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: SERVER 0.4.0
    • Fix Version/s: SERVER 1.0.8, SERVER 2.0.0
    • Component/s: Puppet Server
    • Labels:
      None
    • Environment:
      • CentOS 7 x86_64
      • puppetserver-0.4.0-1.el7.noarch
    • Template:

      Description

      String::crypt permits to calculate the hash of a given password and salt (http://www.ruby-doc.org/core-2.1.5/String.html#method-i-crypt).
      It's very useful and probably very common when creating users with their password in puppet (usage example: https://gist.github.com/pschyska/26002d5f8ee0da2a9ea0).

      However String::crypt is broken in jruby (https://github.com/jruby/jruby/issues/1035), and, consequently, in puppetserver.

      A possible work around is to call the equivalent function in java as shown in https://gist.github.com/kakwa/6244f3336b8d65cdbb91

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              kakwa Pierre-Francois Carpentier
              QA Contact:
              Erik Dasher Erik Dasher
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support