<def-group>
  <definition class="compliance" id="enable_dconf_user_profile" version="1">
    {{{ oval_metadata("The DConf User profile should have the local DB configured.") }}}
    <criteria operator="OR">
      <extend_definition comment="dconf installed" definition_ref="package_dconf_installed" negate="true" />
      <criterion comment="dconf user profile exists" test_ref="test_dconf_user_profile" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" check_existence="all_exist"
  comment="dconf user profile exists"
  id="test_dconf_user_profile" version="1">
    <ind:object object_ref="obj_dconf_user_profile" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_dconf_user_profile"
  version="2">
    {{% if product in ['sle12', 'sle15'] %}}
      <ind:filepath>/etc/dconf/profile/gdm</ind:filepath>
      <ind:pattern operation="pattern match">^user-db:user\nsystem-db:gdm$</ind:pattern>
    {{% else %}}
      <ind:filepath>/etc/dconf/profile/user</ind:filepath>
      <ind:pattern operation="pattern match">^user-db:user\nsystem-db:local$</ind:pattern>
    {{% endif %}}
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
