<def-group>
  <definition class="compliance" id="sudo_remove_no_authenticate" version="1">
    {{{ oval_metadata("Checks sudo usage without authentication", rule_title=rule_title) }}}
    <criteria operator="AND">
      <criterion comment="!authenticate does not exist in /etc/sudoers" test_ref="test_no_authenticate_etc_sudoers" />
      <criterion comment="!authenticate does not exist in /etc/sudoers.d" test_ref="test_no_authenticate_etc_sudoers_d" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="none_exist" comment="!authenticate does not exist in /etc/sudoers" id="test_no_authenticate_etc_sudoers" version="1">
    <ind:object object_ref="object_no_authenticate_etc_sudoers" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_no_authenticate_etc_sudoers" version="1">
    <ind:filepath>/etc/sudoers</ind:filepath>
    <ind:pattern operation="pattern match">^(?!#).*[\s]+\!authenticate.*$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

  <ind:textfilecontent54_test check="all" check_existence="none_exist" comment="!authenticate does not exist in /etc/sudoers.d" id="test_no_authenticate_etc_sudoers_d" version="1">
    <ind:object object_ref="object_no_authenticate_etc_sudoers_d" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_no_authenticate_etc_sudoers_d" version="1">
    <ind:path>/etc/sudoers.d</ind:path>
    <ind:filename operation="pattern match">^.*$</ind:filename>
    <ind:pattern operation="pattern match">^(?!#).*[\s]+\!authenticate.*$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
