Puppet Class: secure_windows::stig::v73263

Defined in:
manifests/stig/v73263.pp

Overview

This class manages V-73263 Passwords must be configured to expire.

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/v73263.pp', line 3

class secure_windows::stig::v73263 (
  Boolean $enforced = false,
) {
  if $enforced {
    $message = 'Not in compliance with DoD STIG V-73263. There are user accounts with passwords not configured to expire.'
    if $facts['windows_server_type'] == 'windowsdc' {
      if $facts['password_expire_dc'] != '' {
        notify { 'Not in compliance with DoD STIG V-73263':
          message  => $message,
          loglevel => warning,
        }
      }
    }
    else {
      if $facts['password_expire'] != '' {
        notify { 'Not in compliance with DoD STIG V-73263':
          message  => $message,
          loglevel => warning,
        }
      }
    }
  }

}