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

User resource always reports password changed when account disabled for Win 2012 R2

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 6.11.0
    • Component/s: Windows
    • Environment:

      OS: Windows 2012 R2
      PE version: PE Version 2018.1.5 & PE Version 2019.1.1
      Agent Version: 6.4.3 & 5.5.6

    • Template:
    • Team:
      Night's Watch
    • Story Points:
      3
    • Sprint:
      NW - 2019-10-16, NW - 2019-10-30
    • Method Found:
      Needs Assessment
    • Zendesk Ticket IDs:
      36181
    • Zendesk Ticket Count:
      1
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Puppet now changes the password for a non-active account on Windows.
    • QA Risk Assessment:
      Needs Assessment

      Description

      This case is already fixed with PUP 4.6.1. Corresponding JIRA case " https://tickets.puppetlabs.com/browse/PUP-6586".

      However, latest version 6.x, the issue still persists.( PE Version 2019.1.1)

      ```
      PS C:\Program Files\Puppet Labs\Puppet\bin> .\puppet.bat apply -e "user

      { 'mcoad min': ensure => present, password => 'password@123'}

      "
      Notice: Compiled catalog for b3apzcy9g7ci4uo.delivery.puppetlabs.net in environm
      ent production in 0.02 seconds
      Notice: /Stage[main]/Main/User[mcoadmin]/ensure: created
      Notice: Applied catalog in 0.21 seconds
      PS C:\Program Files\Puppet Labs\Puppet\bin> .\puppet.bat apply -e "user

      { 'mcoad min': ensure => present, password => 'password@1234'}

      "
      Notice: Compiled catalog for b3apzcy9g7ci4uo.delivery.puppetlabs.net in environm
      ent production in 0.02 seconds
      Warning: User[mcoadmin](provider=windows_adsi): The user account 'mcoadmin' is d
      isabled; puppet will not reset the password
      Notice: /Stage[main]/Main/User[mcoadmin]/password: changed [redacted] to [redact
      ed]
      Notice: Applied catalog in 0.08 seconds
      ```
      This issue has not appeared over 5.5.x version ( PE Version 2018.1.5)

      ```
      PS C:\Program Files\Puppet Labs\Puppet\bin> .\puppet.bat apply user1.pp
      Notice: Compiled catalog for ms2012.ldap.plab in environment production in 0.02 seconds
      Notice: /Stage[main]/User1/User[mcoadmin]/password: changed password
      Notice: Applied catalog in 0.23 seconds
      PS C:\Program Files\Puppet Labs\Puppet\bin> .\puppet.bat apply user1.pp
      Notice: Compiled catalog for ms2012.ldap.plab in environment production in 0.02 seconds
      Notice: Applied catalog in 0.47 seconds
      ```

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dorin.pleava Dorin Pleava
                Reporter:
                maheswaran Maheswaran Shanmugam
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support