#3339 sssd failed to start with missing /etc/sssd/sssd.conf if compiled without --enable-files-domain
Closed: Fixed Opened by lslebodn.

./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


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

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,

Metadata Update from @lslebodn:
- Issue assigned to lslebodn

https://github.com/SSSD/sssd/pull/255

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

master:

  • 1732c40287be0ff918e42ae0045aafeee91b3c7b
  • b7ad403d5068dc4840cdaa175338de885e294ac6
  • 87de1e0fb0f1b40bc088540f7a24f0a20fecf618

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)

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/4370

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata