<def-group>
  <definition class="compliance" id="dovecot_disable_plaintext_auth"
  version="1">
    <metadata>
      <title>Disable Plaintext Authentication in Dovecot</title>
      <affected family="unix">
        <platform>Red Hat Enterprise Linux 6</platform>
      </affected>
      <description>Plaintext authentication of mail clients should be disabled.</description>
      <reference source="MED" ref_id="20130819" ref_url="test_attestation" />
    </metadata>
    <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>
