#1625 Confusing error messages for invalid sssd.conf
Closed: Fixed None Opened 11 years ago by dpal.

https://bugzilla.redhat.com/show_bug.cgi?id=874545 (Red Hat Enterprise Linux 6)

Description of problem:
error messages logged by sssd when sssd.conf is invalid are confusing

Version-Release number of selected component (if applicable):
libsss_autofs-1.9.2-7.el6.x86_64
sssd-1.9.2-7.el6.x86_64
libsss_sudo-1.9.2-7.el6.x86_64
libsss_idmap-1.9.2-7.el6.x86_64
sssd-client-1.9.2-7.el6.x86_64

How reproducible:
always

Steps to Reproduce:

echo Invalid permissions
> /etc/sssd/sssd.conf
chmod 644 /etc/sssd/sssd.conf
sssd -i

echo Empty file
chmod 600 /etc/sssd/sssd.conf
sssd -i

echo Invalid configuration
cat <<<"
[domain/default]
[sssd]
services = nss, pam
config_file_version = 2
domains =
" > /etc/sssd/sssd.conf
sssd -i

Actual results:
Invalid permissions
(Thu Nov  8 14:04:57:043303 2012) [sssd] [main] (0x0020): Cannot read
configuration file /etc/sssd/sssd.conf
Empty file
(Thu Nov  8 14:04:57:048903 2012) [sssd] [main] (0x0020): Error loading
configuration database: [22]: Invalid argument
Invalid configuration
(Thu Nov  8 14:04:57:247281 2012) [sssd] [main] (0x0020): Error loading
configuration database: [2]: No such file or directory

Expected results:
something like this:

Invalid permissions
(Thu Nov  8 14:04:57:043303 2012) [sssd] [main] (0x0020): Configuration file
/etc/sssd/sssd.conf mode bits too permissive
Empty file
(Thu Nov  8 14:04:57:048903 2012) [sssd] [main] (0x0020): Error loading
configuration file /etc/sssd/sssd.conf: configuration invalid
Invalid configuration
(Thu Nov  8 14:04:57:247281 2012) [sssd] [main] (0x0020): Error loading
configuration file /etc/sssd/sssd.conf: configuration invalid

Additional info:

I understand that sssd produces additional, more meaningful error messages with
elevated debug level. However, the summary messages are very confusing and
should be fixed. Plus, the class of configuration error messages could be
changed to match the default debug level.

Fields changed

blockedby: =>
blocking: =>
coverity: =>
design: =>
design_review: => 0
feature_milestone: =>
fedora_test_page: =>
owner: somebody => arielb
status: new => assigned
testsupdated: => 0

Fields changed

selected: => Not need

Moving tickets that are not a priority for SSSD 1.10 into the next release.

milestone: SSSD 1.10 beta => SSSD 1.11 beta

Ariel has contributed a patch. Moving to 1.10 beta.

milestone: SSSD 1.11 beta => SSSD 1.10 beta
resolution: => fixed
review: => 0
status: assigned => closed

Metadata Update from @dpal:
- Issue assigned to arielb
- Issue set to the milestone: SSSD 1.10 beta

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

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