<def-group>
  <definition class="compliance" id="{{{ rule_id }}}" version="1">
    {{{ oval_metadata("The pam_unix module should not include remember option") }}}
    <criteria>
      <criterion comment="make sure the remember option is not used in pam_unix.so module"
                 test_ref="test_pam_unix_no_remember" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" check_existence="none_exist" version="1"
                              id="test_pam_unix_no_remember"
                              comment="make sure remember is not used in /etc/pam.d/common-auth">
    <ind:object object_ref="object_pam_unix_no_remember" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_pam_unix_no_remember" version="1">
    <ind:filepath operation="pattern match">^/etc/pam.d/common-(password|auth|account|session|session-noninteractive)$</ind:filepath>
    <ind:pattern operation="pattern match">^\s*password\s+(?:(?:sufficient)|(?:required)|(?:\[.*\]))\s+pam_unix\.so[^#]+\bremember=\d+\b.*$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
