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

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

    XMLWordPrintable

Details

    • Night's Watch
    • 3
    • NW - 2019-10-16, NW - 2019-10-30
    • Needs Assessment
    • 36181
    • 1
    • Bug Fix
    • Puppet now changes the password for a non-active account on Windows.
    • 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

              dorin.pleava Dorin Pleava
              maheswaran Maheswaran Shanmugam
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support