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

Created a month ago by lslebodn
Modified 15 days 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

a month ago

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

a month 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.

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

Login to comment on this ticket.