<def-group>
  <definition class="compliance" id="gnome_gdm_disable_automatic_login" version="2">
    {{{ oval_metadata("Disable the GNOME Display Manager (GDM) ability to allow users to
      automatically login.", rule_title=rule_title) }}}
    <criteria operator="OR">
      <extend_definition comment="gdm installed" definition_ref="package_gdm_installed" negate="true" />
      <criterion comment="Disable GDM Automatic Login" test_ref="test_disable_automatic_login" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="all_exist"
  comment="Disable GDM Automatic Login"
  id="test_disable_automatic_login" version="1">
    <ind:object object_ref="obj_disable_automatic_login" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_disable_automatic_login"
  version="1">
    <ind:filepath>/etc/gdm/custom.conf</ind:filepath>
    <ind:pattern operation="pattern match">^\[daemon]([^\n]*\n+)+?AutomaticLoginEnable=[Ff]alse$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
