<def-group>
  <definition class="compliance" id="gnome_gdm_disable_unattended_automatic_login" version="2">
    {{{ oval_metadata("Disable the GNOME Display Manager (GDM) ability to allow users to
      automatically login.") }}}
    <criteria operator="AND">
      <criterion comment="Disable GDM Automatic Login" test_ref="test_disable_unattended_automatic_login" />
      <criterion comment="Disable GDM Password Less Login" test_ref="test_disable_unattended_login" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="all_exist"
  comment="Disable GDM Automatic Login"
  id="test_disable_unattended_automatic_login" version="1">
    <ind:object object_ref="obj_disable_unattended_automatic_login" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_disable_unattended_automatic_login"
  version="1">
    <ind:filepath>/etc/sysconfig/displaymanager</ind:filepath>
    <ind:pattern operation="pattern match">^DISPLAYMANAGER_AUTOLOGIN=""$</ind:pattern>
    <ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
  </ind:textfilecontent54_object>

  <ind:textfilecontent54_test check="all" check_existence="all_exist"
  comment="Disable GDM Password Less Login"
  id="test_disable_unattended_login" version="1">
    <ind:object object_ref="obj_disable_unattended_login" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_disable_unattended_login"
  version="1">
    <ind:filepath>/etc/sysconfig/displaymanager</ind:filepath>
    <ind:pattern operation="pattern match">^DISPLAYMANAGER_PASSWORD_LESS_LOGIN="no"$</ind:pattern>
    <ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
