<def-group oval_version="5.11">
  <definition class="compliance" id="dovecot_disable_plaintext_auth"
  version="1">
    {{{ oval_metadata("Plaintext authentication of mail clients should be disabled.") }}}
    <criteria comment="Disable Plaintext Authentication in Dovecot" operator="OR">
      <extend_definition comment="dovecot service is disabled" definition_ref="service_dovecot_disabled" />
      <criterion test_ref="test_dovecot_disable_plaintext_auth" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" check_existence="all_exist"
  comment="Tests the value of the disable_plaintext_auth[\s]*(&lt;:nocomment:&gt;*) setting in the /etc/dovecot.conf file"
  id="test_dovecot_disable_plaintext_auth" version="1">
    <ind:object object_ref="obj_dovecot_disable_plaintext_auth" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_dovecot_disable_plaintext_auth"
  version="1">
    <ind:filepath>/etc/dovecot/conf.d/10-auth.conf</ind:filepath>
    <ind:pattern operation="pattern match">^[\s]*disable_plaintext_auth[\s]*=[\s]*yes[\s]*$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
