Ticket #1291 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Authconfig crashes when sets krb realm

Reported by: sgallagh Owned by: jhrozek
Priority: critical Milestone: NEEDS_TRIAGE
Component: SSSDConfig API Version: 1.8.0
Keywords: Regression Cc:
Blocked By: Blocking:
Tests Updated: no Coverity Bug:
Patch Submitted: yes Red Hat Bugzilla: 808458, 810608
Design link:
Feature Milestone:
Design review: Fedora test page:
Chosen: Candidate to push out:
Release Notes:

Description

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

Description of problem:
When setting krb5realm in authconfig, it prints this traceback:

# authconfig --update --nostart --krb5realm=REALM1.COM

Traceback (most recent call last):
  File "/usr/sbin/authconfig", line 926, in <module>
    sys.exit(module.run())
  File "/usr/sbin/authconfig", line 521, in run
    self.writeAuthInfo()
  File "/usr/sbin/authconfig", line 488, in writeAuthInfo
    if not self.info.writeChanged(self.pristineinfo):
  File "/usr/share/authconfig/authinfo.py", line 3531, in writeChanged
    ret = ret and group.saveFunction()
  File "/usr/share/authconfig/authinfo.py", line 2882, in writeSSSD
    self.sssdConfig.save_domain(domain)
  File "/usr/lib/python2.6/site-packages/SSSDConfig.py", line 1969, in
save_domain
    self.delete_option_subtree(section_subtree['values'], 'option',
option['name'], True)
KeyError: 'values'

# echo $?
1

Version-Release number of selected component (if applicable):
authconfig-6.1.12-6.el6

How reproducible:
100%

Steps to Reproduce:
1. authconfig --update --nostart --krb5realm=REALM1.COM
2.
3.

Actual results:
Traceback as above, krb5.conf is updated with realm1.com

Expected results:
No ouput on stdout

# echo $?
0

Properly updated krb5.conf

Additional info:

Change History

comment:1 Changed 2 years ago by sgallagh

  • tests set to 0
  • upgrade set to 0
  • Owner changed from somebody to jhrozek
  • Priority changed from major to critical
  • Keywords Regression added
  • Tests Updated unset

Appears to have been introduced by 535b4fc2c320c2fc5075947c105d830ce59d2958

comment:2 Changed 2 years ago by jhrozek

  • Status changed from new to assigned
  • Patch Submitted set

comment:3 Changed 2 years ago by sgallagh

  • Status changed from assigned to closed
  • Resolution set to fixed

comment:4 Changed 2 years ago by sgallagh

  • Red Hat Bugzilla changed from [https://bugzilla.redhat.com/show_bug.cgi?id=808458 808458] to [https://bugzilla.redhat.com/show_bug.cgi?id=808458 808458], [https://bugzilla.redhat.com/show_bug.cgi?id=810608 810608]
Note: See TracTickets for help on using tickets.