Puppet Class: secure_windows::stig::v73261

Defined in:
manifests/stig/v73261.pp

Overview

This class manages V-73261 Accounts must require passwords.

Parameters:

  • enforced (Boolean) (defaults to: false)


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/stig/v73261.pp', line 3

class secure_windows::stig::v73261 (
  Boolean $enforced = false,
) {
  if $enforced {
    $message = 'Not in compliance with DoD STIG V-73261. Accounts exist that do not require passwords. Run \'net user [username] /passwordreq:yes\' for each finding.' # lint:ignore:140chars
    if $facts['windows_server_type'] == 'windowsdc' {
      if $facts['password_required_dc'] != '' {
        notify { 'Not in compliance with DoD STIG V-73261':
          message  => $message,
          loglevel => warning,
        }
      }
    }
    else {
      if $facts['password_required'] != '' {
        notify { 'Not in compliance with DoD STIG V-73261':
          message  => $message,
          loglevel => warning,
        }
      }
    }
  }

}