
<def-group>
  <definition class="compliance" id="sssd_enable_certmap" version="1">
    <metadata>
        <title>Enable Certmap in SSSD</title>
        
    <affected family="unix">
    <platform>Ubuntu 22.04</platform>
    </affected>
        <description>Check presence of \[certmap\/.+\/.+\] in /etc/sssd/sssd.conf</description>
    </metadata>
    <criteria operator="AND" comment="Test conditions - presence of the file plus 0 extra definitions.">
      <criterion comment="Check that /etc/sssd/sssd.conf contains a line with certain text" test_ref="test_sssd_enable_certmap" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all"
  comment="tests the presence of '\[certmap\/.+\/.+\]' setting in the /etc/sssd/sssd.conf file"
  id="test_sssd_enable_certmap" version="1">
  <ind:object object_ref="obj_sssd_enable_certmap" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object id="obj_sssd_enable_certmap" version="1">
    <ind:filepath>/etc/sssd/sssd.conf</ind:filepath>
    <ind:pattern operation="pattern match">^[\s]*\[certmap\/.+\/.+\][\s]*$</ind:pattern>
    <ind:instance operation="greater than or equal" datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>