<def-group>
  <definition class="compliance" id="{{{ rule_id }}}" version="1">
    {{{ oval_metadata("nis is not configured as a database in /etc/nsswitch.conf") }}}
    <criteria comment="nis is not configured as a database in /etc/nsswitch.conf">
      <criterion test_ref="test_no_nis_in_nsswitch" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="none_exist"
  comment="check for nsswitch.conf lines which have nis configured as a database" id="test_no_nis_in_nsswitch"
  version="1">
    <ind:object object_ref="object_no_nis_in_nsswitch" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object comment="nsswitch.conf lines which have nis defined as a database"
  id="object_no_nis_in_nsswitch" version="1">
    <ind:filepath>/etc/nsswitch.conf</ind:filepath>
    <ind:pattern operation="pattern match">^\w+\s+(\w+\s+)*nis($|\s+.*$)</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
