#3339 sssd failed to start with missing /etc/sssd/sssd.conf if compiled without --enable-files-domain

Created 8 months ago by lslebodn
Modified 6 months ago

./configure help says:

  --enable-files-domain   If this feature is enabled, then SSSD always enables
                          a domain with id_provider=files even if the domain
                          is not specified in the config file [default=no]

It does not say anything about missing sssd.conf. And files provider is build by default; So we can enable it with missing /etc/sssd/sssd.conf

8 months ago

Metadata Update from @lslebodn:
- Custom field version adjusted to 1.15.2

8 months ago

Metadata Update from @jhrozek:
- Issue set to the milestone: SSSD 1.15.4

Do not forget to update commit message in src/tools/sssctl/sssctl_config.c.
e.g.

     /* Open config file */
     ret = sss_ini_config_file_open(init_data, SSSD_CONFIG_FILE);
     if (ret == ENOENT) {
+#ifdef ADD_FILES_DOMAIN
+        PRINT("File %1$s does not exist. SSSD will use default "
+              "configuration with files provider.\n", SSSD_CONFIG_FILE);
+        ret = EOK;
+#else
         ERROR("File %1$s does not exist.\n", SSSD_CONFIG_FILE);
+#endif /* ADD_FILES_DOMAIN */
         goto done;
     } else if (ret != EOK) {
         DEBUG(SSSDBG_TRACE_FUNC,
7 months ago

Metadata Update from @lslebodn:
- Issue assigned to lslebodn

7 months ago

Metadata Update from @lslebodn:
- Custom field patch adjusted to on

6 months ago

Metadata Update from @lslebodn:
- Issue close_status updated to: Fixed
- Issue set to the milestone: SSSD 1.15.3 (was: SSSD 1.15.4)
- Issue status updated to: Closed (was: Open)

Login to comment on this ticket.

1.15.2

on

cancel