Puppet Class: secure_windows::stig::v73771
- Defined in:
- manifests/stig/v73771.pp
Overview
This class manages: V-73771 The Deny log on locally user right on member servers must be configured to prevent access from highly privileged domain accounts on domain systems and from unauthenticated access on all systems.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'manifests/stig/v73771.pp', line 5
class secure_windows::stig::v73771 (
Boolean $enforced = false,
) {
if $enforced {
if !($facts['windows_server_type'] == 'windowsdc') {
if($facts['windows_type'] =~ /(0|2)/) {
#standalone
local_security_policy { 'Deny log on locally':
ensure => 'present',
policy_setting => 'SeDenyInteractiveLogonRight',
policy_type => 'Privilege Rights',
policy_value => '*S-1-5-32-546',
}
}
elsif ($facts['windows_type'] =~ /(1|3)/) {
#member server
#NOTE: Systems dedicated to the management of Active Directory are exempt from this :(
local_security_policy { 'Deny log on locally':
ensure => 'present',
policy_setting => 'SeDenyInteractiveLogonRight',
policy_type => 'Privilege Rights',
policy_value => 'Domain Admins,Enterprise Admins,*S-1-5-32-546',
}
}
}
}
}
|