#1291 Authconfig crashes when sets krb realm
Closed: Fixed None Opened 11 years ago 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 535b4fc

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:
- 20cd9a2 (master)
- 226cf66 (sssd-1-8)

resolution: => fixed
status: assigned => closed

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

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

Login to comment on this ticket.

Metadata