Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
PUP 4.5.3
-
-
2
-
Windows 2016-08-24
-
Customer Feedback
-
Bug Fix
-
Description
On Windows 2008R2, when managing a local user the password will always report as changed if the user's account is disabled. This appears to be due to the provider not checking for the ERROR_ACCOUNT_DISABLED return code as outlined in PUP-6569.
To recreate:
1. Create a new local user, "testuser", on Win 2k8R2 (also seen on 2012) and set the account to disabled.
2. Run `puppet apply -e "user
"`. Note that no matter how many times it is run, the output will report "Notice: /Stage[main]/Main/User[testuser]/password: changed password".
3. Re-enable the account
4. Run `puppet apply -e "user
"`. Note that the notice is no longer shown.