<def-group>
  <definition class="compliance" id="ldap_client_start_tls" version="1">
    <metadata>
      <title>Configure LDAP to Use TLS for All Transactions</title>
      <affected family="unix">
        <platform>Red Hat Enterprise Linux 6</platform>
      </affected>
      <description>Require the use of TLS for ldap clients.</description>
      <reference source="DS" ref_id="20131018" ref_url="test_attestation" />
    </metadata>
    <criteria comment="package pam_ldap is not present" operator="OR">
      <extend_definition comment="pam_ldap not present or not in use"
      definition_ref="ldap_client_pam_ldap_present" negate="true" />
      <criterion comment="look for ssl start_tls in /etc/pam_ldap.conf"
      test_ref="test_ldap_client_start_tls_ssl" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" check_existence="at_least_one_exists"
  comment="Tests the value of the ssl start_tls setting in the /etc/pam_ldap.conf file"
  id="test_ldap_client_start_tls_ssl" version="1">
    <ind:object object_ref="obj_ldap_client_start_tls_ssl" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_ldap_client_start_tls_ssl" version="1">
    <ind:filepath>/etc/pam_ldap.conf</ind:filepath>
    <ind:pattern operation="pattern match">^[\s]*ssl[\s]+start_tls[\s]*$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
