<def-group>
  <definition class="compliance" id="accounts_password_pam_pwquality" version="1">
    <metadata>
      <title>Check pam_pwquality Existence in system-auth</title>
      <affected family="unix">
        <platform>Red Hat Enterprise Linux 7</platform>
        <platform>multi_platform_fedora</platform>
      </affected>
      <description>Check that pam_pwquality.so exists in system-auth</description>
      <reference source="JL" ref_id="RHEL7_20150522" ref_url="test_attestation" />
      <reference source="JL" ref_id="FEDORA20_20150522" ref_url="test_attestation" />
    </metadata>
    <criteria>
      <criterion comment="Conditions for pam_pwquality are satisfied"
      test_ref="test_password_pam_pwquality" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" comment="check the configuration of /etc/pam.d/system-auth" id="test_password_pam_pwquality" version="1">
    <ind:object object_ref="obj_password_pam_pwquality" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object id="obj_password_pam_pwquality" version="1">
    <ind:filepath>/etc/pam.d/system-auth</ind:filepath>
    <ind:pattern operation="pattern match">^\s*password\s+(?:(?:required)|(?:requisite))\s+pam_pwquality\.so.*$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
