# encoding: UTF-8

control 'VCSA-70-000003' do
  title "The vCenter Server must enforce a 60-day maximum password lifetime
restriction."
  desc  "Any password, no matter how complex, can eventually be cracked.
Therefore, passwords need to be changed at specific intervals.

    One method of minimizing this risk is to use complex passwords and
periodically change them. If the application does not limit the lifetime of
passwords and force users to change their passwords, there is the risk that the
system and/or application passwords could be compromised.

    This requirement does not include emergency administration accounts which
are meant for access to the application in case of failure. These accounts are
not required to have maximum password lifetime restrictions.
  "
  desc  'rationale', ''
  desc  'check', "
    From the vSphere Client, go to Administration >> Single Sign On >>
Configuration >> Local Accounts >> Password Policy.  View the value of the
\"Maximum lifetime\" setting.

    If the \"Maximum lifetime\" policy is not set to \"60\", this is a finding.
  "
  desc  'fix', "From the vSphere Client, go to Administration >> Single Sign On
>> Configuration >> Local Accounts >> Password Policy.  Click \"Edit\" and
enter \"60\" into the \"Maximum lifetime\" setting and click \"OK\". "
  impact 0.5
  tag severity: 'medium'
  tag gtitle: 'SRG-APP-000174'
  tag gid: nil
  tag rid: nil
  tag stig_id: 'VCSA-70-000003'
  tag fix_id: nil
  tag cci: 'CCI-000199'
  tag nist: ['IA-5 (1) (d)']

  describe "This check is a manual or policy based check" do
    skip "This must be reviewed manually"
  end

end

