Bug 820490 - sss_debuglevel "-c" option should work only with valid sssd.conf file
sss_debuglevel "-c" option should work only with valid sssd.conf file
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sssd (Show other bugs)
x86_64 Linux
unspecified Severity low
: rc
: ---
Assigned To: SSSD Maintainers
Namita Soman
Depends On:
  Show dependency treegraph
Reported: 2012-05-10 03:23 EDT by Amith
Modified: 2016-02-28 12:25 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-02-28 12:25:47 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Amith 2012-05-10 03:23:40 EDT
Description of problem:
The "-c" option for sss_debuglevel utility is used when SSSD service runs with non-default config file. This option should work only with valid sssd.conf file. Currently, sss_debuglevel successfully updates the cache when any file is provided with "-c" option. It also works when non-existing files are provided with "-c" option which is not the expected behaviour. The utility should first verify the existence of config file, and then should also check if the given file is a genuine sssd.conf file.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Modify debug level using any existing file, by running the below command:
   # sss_debuglevel -c /etc/sysconfig/network 64

2. Verify if the debug_level value in config.ldb file is updated:
   # ldbsearch -H /var/lib/sss/db/config.ldb -b "cn=LDAP,cn=domain,cn=config"

3. Try to modify debug level using a non-existing file.
   # sss_debuglevel -c /root/non-existing_file 32

4. Verify if the debug_level value in config.ldb file is updated:
   # ldbsearch -H /var/lib/sss/db/config.ldb -b "cn=LDAP,cn=domain,cn=config"

Actual results:
The debug_level values get updated in the cache.

Expected results:
sss_debuglevel utility should display relevant error messages without updating the cache.

Additional info:
Comment 2 Jakub Hrozek 2012-05-10 05:02:02 EDT
Upstream ticket:
Comment 8 Jakub Hrozek 2016-02-28 12:25:47 EST
Thank you taking your time and submitting this request for Red Hat Enterprise
Linux. The request was cloned to the upstream tracker long time ago (see link
to the upstream ticket above), but it was not given a priority neither in the
upstream project, nor in Red Hat Enterprise Linux.

Given that this request is not planned for a close release, it is highly
unlikely it will be fixed in this major version of Red Hat Enterprise Linux. We
are therefore closing the request as WONTFIX.

To request that Red Hat reconsiders the decision, please reopen the Bugzilla
with the help of Red Hat Customer Service and provide additional business
and/or technical details about it's importance to you. Please note that you can
still track this request or even offer help in the referred upstream Trac
ticket to expedite the solution.

Note You need to log in before you can comment on or make changes to this bug.