<def-group>
  <definition class="compliance"
  id="ldap_client_bindpw" version="1">
    <metadata>
      <title>Ensure LDAP Does Not Store Passwords In Clear Text</title>
      <affected family="unix">
        <platform>CentOS 4</platform>
		<platform>CentOS 5</platform>
		<platform>Red Hat Enterprise Linux 4</platform>
		<platform>Red Hat Enterprise Linux 5</platform>
      </affected>
      <description>If the system is using LDAP for authentication or 
	  account information, the /etc/ldap.conf file (or equivalent) 
	  must not contain passwords.</description>
    </metadata>
    <criteria>
		<criterion comment="look for bindpw in /etc/ldap.conf" test_ref="test_ldap_client_bindpw" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all"
  check_existence="none_exist"
  comment="Tests the value of bindpw in the /etc/ldap.conf file"
  id="test_ldap_client_bindpw" version="1">
    <ind:object object_ref="obj_ldap_client_bindpw" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_ldap_client_bindpw"
  version="1">
    <ind:path>/etc</ind:path>
    <ind:filename>ldap.conf</ind:filename>
    <ind:pattern operation="pattern match">^(?!#|[\s]*#).*[\s]*(bindpw)[\s]*.*$</ind:pattern>
    <ind:instance operation="greater than or equal" datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
