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

User resource sets password on every puppet agent run (Windows)

    Details

    • Template:
      PUP Bug Template
    • Team:
      Night's Watch
    • Story Points:
      3
    • Sprint:
      PR - 2019-05-15, PR - 2019-05-29
    • Method Found:
      Needs Assessment
    • CS Priority:
      Needs Priority
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Fix: Corrective change for the password happens on the first puppet only instead of every puppet run.
    • QA Risk Assessment:
      Needs Assessment

      Description

      *Puppet Version: 5.5.10
      *Puppet Server Version: 5.3.7
      OS Name/Version: WIndows Server 2016

      When using the following simple code to set the Administrator password on Windows:

      $adminpassword = 'slkdhfl@#$slkW223' 
       
      if $adminpassword { 
          user { 'Administrator': 
          ensure => present, 
          password => $adminpassword, 
          } 
      } 
      

      The above sets the password correctly but if

      Deny access to this computer from the network
      

      local group policy has been configured for members of the Administrator group, the password will get applied on every puppet agent run.

      This has been reproduced locally on my Windows 2016 box where Deny access to this computer from the network has been set for the admin group, using the above code and puppet apply.

      Desired Behavior: Corrective change for the password happens on the first puppet only.

      Actual Behavior: Corrective change for the password gets made on every puppet run.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alexandru.popa Alexandru Popa
                Reporter:
                patrick.grant Patrick Grant
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support