summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-09-17 08:15:01 -0700
committerGitHub <noreply@github.com>2021-09-17 08:15:01 -0700
commitc5f03b19ed99e28e0a4998ae7608a735fbe1791f (patch)
treebc171004e5e1b498fef624c61fcbc2f5aa51e417
parenta23a47e4383a6a3a28d42d3adeb7ee6f4b5294e0 (diff)
parent5d189ebe55da39150722866057e5fea0777baba6 (diff)
downloadchef-c5f03b19ed99e28e0a4998ae7608a735fbe1791f.tar.gz
Merge pull request #12055 from chef/windows_security_policy
windows_security_policy: Add AuditPolicyChange and LockoutDuration capabilities
-rw-r--r--lib/chef/resource/windows_security_policy.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/resource/windows_security_policy.rb b/lib/chef/resource/windows_security_policy.rb
index 1b0a285197..4b79067763 100644
--- a/lib/chef/resource/windows_security_policy.rb
+++ b/lib/chef/resource/windows_security_policy.rb
@@ -27,6 +27,7 @@ class Chef
# The valid policy_names options found here
# https://github.com/ChrisAWalker/cSecurityOptions under 'AccountSettings'
+ # This needs to be revisited - the list at the link above is non-exhaustive and is missing a couple of items
policy_names = %w{LockoutDuration
MaximumPasswordAge
MinimumPasswordAge
@@ -35,6 +36,8 @@ class Chef
PasswordHistorySize
LockoutBadCount
ResetLockoutCount
+ AuditPolicyChange
+ LockoutDuration
RequireLogonToChangePassword
ForceLogoffWhenHourExpire
NewAdministratorName