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

OSX Passwords not setting under Puppet 4.4.1

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 4.4.1
    • Fix Version/s: PUP 4.6.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      Hide

      should not error:
      user

      { 'test': ensure => 'present', comment => 'test', home => '/Users/test', iterations => '46948', password => '9690da8dd8f90f6e3fed4f267c86110e29d75e8448efdacdee9bd5cc20f81a563c9e6c6c328694fac80910ba99508cc373525ac592b87fbec0ac1a1e26a51f01873c25f2450aa78e09c8498df0f11fa930c3f655e7aeed6bc61e8475ca84297b3a2273d31974ddd232e872d9b66be82d0246d094d60155c93c6b7a27ba1aa390', salt => '62133b77a7aeecf506ffe99d064b3f8c068344de0a619a573a871f2fd6fe9eaf', shell => '/bin/bash', uid => '503', }
      Show
      should not error: user { 'test': ensure => 'present', comment => 'test', home => '/Users/test', iterations => '46948', password => '9690da8dd8f90f6e3fed4f267c86110e29d75e8448efdacdee9bd5cc20f81a563c9e6c6c328694fac80910ba99508cc373525ac592b87fbec0ac1a1e26a51f01873c25f2450aa78e09c8498df0f11fa930c3f655e7aeed6bc61e8475ca84297b3a2273d31974ddd232e872d9b66be82d0246d094d60155c93c6b7a27ba1aa390', salt => '62133b77a7aeecf506ffe99d064b3f8c068344de0a619a573a871f2fd6fe9eaf', shell => '/bin/bash', uid => '503', }
    • Story Points:
      3
    • Sprint:
      Client 2016-05-18, Client 2016-06-01
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      directoryservice user provider was failing to set password and salt under certain circumstances on OSX

      Description

      Managing the passwords for local users under OSX 10.9, 10.10 and 10.11 under puppet 4.4.1 fails when setting the salt, iterations and password.

      Steps to re-create:

      Used the following command to generate a user definition and saved it to test.pp

      puppet resource user test >> test.pp
      

      user { 'test':
        ensure     => 'present',
        comment    => 'test',
        gid        => '20',
        groups     => ['com.apple.sharepoint.group.2'],
        home       => '/Users/test',
        iterations => '46948',
        password   => '9690da8dd8f90f6e3fed4f267c86110e29d75e8448efdacdee9bd5cc20f81a563c9e6c6c328694fac80910ba99508cc373525ac592b87fbec0ac1a1e26a51f01873c25f2450aa78e09c8498df0f11fa930c3f655e7aeed6bc61e8475ca84297b3a2273d31974ddd232e872d9b66be82d0246d094d60155c93c6b7a27ba1aa390',
        salt       => '62133b77a7aeecf506ffe99d064b3f8c068344de0a619a573a871f2fd6fe9eaf',
        shell      => '/bin/bash',
        uid        => '503',
      }
      

      When running puppet apply on the above definition I get the following errors:

      Error: "\x96" on UTF-8
      Error: /Stage[main]/Main/User[test]/password: change from [old password hash redacted] to [new password hash redacted] failed: "\x96" on UTF-8
       
      Error: "\xA7" on UTF-8
      Error: /Stage[main]/Main/User[test]/salt: change from 6f13b4510093e89a0098eff8ee5d4bae3e1314ebf31064c101cd886ad8c2fab6 to 62133b77a7aeecf506ffe99d064b3f8c068344de0a619a573a871f2fd6fe9eaf failed: "\xA7" on UTF-8
       
      Error: "\xD2" followed by "\x01" on UTF-8
      Error: /Stage[main]/Main/User[test]/iterations: change from 43290 to 46948 failed: "\xD2" followed by "\x01" on UTF-8
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  k.fieldus Kyle Fieldus
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: