<def-group>
  <definition class="compliance" id="no_empty_passwords" version="1">
    <metadata>
      <title>No nullok Option in /etc/pam.d/system-auth</title>
      <affected family="unix">
        <platform>CentOS 4</platform>
		<platform>CentOS 5</platform>
		<platform>Red Hat Enterprise Linux 4</platform>
		<platform>Red Hat Enterprise Linux 5</platform>
      </affected>
      <description>The file /etc/pam.d/system-auth should not contain the nullok option</description>
    </metadata>
    <criteria>
      <criterion comment="make sure the nullok option is not used in /etc/pam.d/system-auth" test_ref="test_no_empty_passwords_system_auth" />
      <criterion comment="make sure the nullok option is not used in /etc/pam.d/system-auth-ac" test_ref="test_no_empty_passwords_system_auth_ac" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" check_existence="none_exist" comment="make sure nullok is not used in /etc/pam.d/system-auth" id="test_no_empty_passwords_system_auth" version="1">
    <ind:object object_ref="object_no_empty_passwords_system_auth" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_no_empty_passwords_system_auth" version="1">
    <ind:filepath>/etc/pam.d/system-auth</ind:filepath>
    <ind:pattern operation="pattern match">\s*nullok\s*</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
  <ind:textfilecontent54_test check="all" check_existence="none_exist" comment="make sure nullok is not used in /etc/pam.d/system-auth-ac" id="test_no_empty_passwords_system_auth_ac" version="1">
    <ind:object object_ref="object_no_empty_passwords_system_auth_ac" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_no_empty_passwords_system_auth_ac" version="1">
    <ind:filepath>/etc/pam.d/system-auth-ac</ind:filepath>
    <ind:pattern operation="pattern match">\s*nullok\s*</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
