#1291 Authconfig crashes when sets krb realm
Closed: Fixed Opened by sgallagh.

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:

Appears to have been introduced by 535b4fc2c320c2fc5075947c105d830ce59d2958

blockedby: =>
blocking: =>
coverity: =>
feature_milestone: =>
keywords: => Regression
owner: somebody => jhrozek
priority: major => critical
tests: => 0
testsupdated: => 0
upgrade: => 0

Fields changed

patch: 0 => 1
status: new => assigned

Fixed by:
- 20cd9a212158ef7ed2200d8746ae96c2feba6651 (master)
- 226cf667dc1a1c9f5e0a6f2919658ee19dedb763 (sssd-1-8)

resolution: => fixed
status: assigned => closed

Linked to Bugzilla bug: https://bugzilla.redhat.com/show_bug.cgi?id=810608 (Fedora)

rhbz: [https://bugzilla.redhat.com/show_bug.cgi?id=808458 808458] => [https://bugzilla.redhat.com/show_bug.cgi?id=808458 808458], [https://bugzilla.redhat.com/show_bug.cgi?id=810608 810608]

Metadata Update from @sgallagh:
- Issue assigned to jhrozek
- Issue set to the milestone: NEEDS_TRIAGE

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

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.

Metadata