#2452 authconfig crashes if case_sensitive=preserving in sssd.conf
Closed: Fixed None Opened 4 years ago by jhrozek.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1147663

Description of problem:
authconfig crashes if case_sensitive=preserving in sssd.conf

Version-Release number of selected component (if applicable):
authconfig-6.2.8-8.el7.x86_64
sssd-1.12.1-2.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Add case_sensitive=preserving in the domain section of sssd.conf
# authconfig --enablesssd --enablesssdauth --updateall
Traceback (most recent call last):
  File "/usr/sbin/authconfig", line 1067, in <module>
    sys.exit(module.run())
  File "/usr/sbin/authconfig", line 643, in run
    self.readAuthInfo()
  File "/usr/sbin/authconfig", line 414, in readAuthInfo
    self.info = authinfo.read(self.printError)
  File "/usr/share/authconfig/authinfo.py", line 985, in read
    info.read()
  File "/usr/share/authconfig/authinfo.py", line 2470, in read
    self.readSSSD(ref)
  File "/usr/share/authconfig/authinfo.py", line 1853, in readSSSD
    domain = self.sssdConfig.get_domain(domname)
  File "/usr/lib/python2.7/site-packages/SSSDConfig/__init__.py", line 1847, in
get_domain
    domain.set_option(opt['name'], opt['value'])
  File "/usr/lib/python2.7/site-packages/SSSDConfig/__init__.py", line 1149, in
set_option
    (option_schema[0], option, type(value)))
TypeError: Expected <type 'bool'> for case_sensitive, received <type 'str'>


Actual results:
traceback in authconfig

Expected results:
authconfig should not crash

Additional info:

Fields changed

blockedby: =>
blocking: =>
changelog: =>
coverity: =>
design: =>
design_review: => 0
feature_milestone: =>
fedora_test_page: =>
mark: no => 0
owner: somebody => mzidek
patch: 0 => 1
review: True => 0
selected: =>
testsupdated: => 0

Fields changed

resolution: => fixed
status: new => closed

Fields changed

milestone: NEEDS_TRIAGE => SSSD 1.12.2

Metadata Update from @jhrozek:
- Issue assigned to mzidek
- Issue set to the milestone: SSSD 1.12.2

2 years ago

Login to comment on this ticket.

Metadata