#3339 sssd failed to start with missing /etc/sssd/sssd.conf if compiled without --enable-files-domain
Closed: Fixed 6 years ago Opened 7 years ago 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

7 years ago

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

7 years ago

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

6 years ago

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

6 years 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)

6 years ago

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.

Login to comment on this ticket.

Metadata