Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-11454

Cannot login under user created by Puppet on MacOS 12.1

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • PUP 7.14.0
    • PUP 7.17.0
    • None
    • Bug Fix
    • On macOS, puppet now validates that the "salt" parameter for the "user" resource is a hex encoded string of length 64 (exactly).
    • Needs Assessment

    Description

      I create a new user using code example fromĀ  stdlib docs

      $pw = Sensitive.new('Pa55w0rd')
      $salt = Sensitive.new('Using s0m3 s@lt')
      $pw_info = Sensitive.new(str2saltedpbkdf2($pw, $salt, 50000))
      user { 'jdoe':
        ensure     => present,
        iterations => unwrap($pw_info)['iterations'],
        password   => unwrap($pw_info)['password_hex'],
        salt       => unwrap($pw_info)['salt_hex'],
      }
      

      Everything applies with no error, but I can't login until I change password via system preferences.
      System:

       uname -prsv
      Darwin 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64 i386
      

      Puppet:

      puppet --version
      7.14.0
      

      Attachments

        Issue Links

          Activity

            People

              aria.li Aria Li
              dgrigorev Dmitriy Grigorev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support