<def-group>
  <definition class="compliance" id="ftp_present_banner" version="1">
    {{{ oval_metadata("This setting will cause the system greeting banner to be 
      used for FTP connections as well.", rule_title=rule_title) }}}
    <criteria operator="OR">
      <extend_definition comment="vsftpd package is not installed" definition_ref="package_vsftpd_removed" />
      <criterion comment="Banner for FTP Users" test_ref="test_ftp_present_banner" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="all_exist" comment="Banner for FTP Users" id="test_ftp_present_banner" version="1">
    <ind:object object_ref="object_test_ftp_present_banner" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object comment="Banner for FTP Users" id="object_test_ftp_present_banner" version="1">
    {{% if product in ['sle12', 'sle15'] %}}
    <ind:filepath>/etc/vsftpd.conf</ind:filepath>
    {{% else %}}
    <ind:filepath>/etc/vsftpd/vsftpd.conf</ind:filepath>
    {{% endif %}}
    <ind:pattern operation="pattern match">^[\s]*banner_file=/etc/issue[\s]*$</ind:pattern>
    <ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>

