Bug 752741

Summary: authconfig --krb5realm... --update crashes (python backtrace)
Product: [Fedora] Fedora Reporter: Jon Dowland <jon+bugzilla.redhat.com>
Component: authconfigAssignee: Tomas Mraz <tmraz>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 16CC: tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-10 10:14:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
kerberos krb5.conf file none

Description Jon Dowland 2011-11-10 10:03:33 UTC
Created attachment 532770 [details]
kerberos krb5.conf file

Description of problem:

Running authconfig results in a program crash and python traceback.

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

Version     : 6.1.16
Release     : 1.fc16

How reproducible:

Always (for me).

Steps to Reproduce:
1. /usr/sbin/authconfig --krb5realm=CAMPUS.NCL.AC.UK --update
2. ...
3. profit!
  
Actual results:


Traceback (most recent call last):
  File "/usr/sbin/authconfig", line 938, in <module>
    sys.exit(module.run())
  File "/usr/sbin/authconfig", line 538, in run
    self.writeAuthInfo()
  File "/usr/sbin/authconfig", line 505, in writeAuthInfo
    if not self.info.writeChanged(self.pristineinfo):
  File "/usr/share/authconfig/authinfo.py", line 3632, in writeChanged
    ret = ret and group.saveFunction()
  File "/usr/share/authconfig/authinfo.py", line 2974, in writeSSSD
    self.sssdConfig.save_domain(domain)
  File "/usr/lib/python2.7/site-packages/SSSDConfig.py", line 1765, in save_domain
    self.delete_option_subtree(section_subtree, 'option', option['name'], True)
  File "/usr/lib/python2.7/site-packages/ipachangeconf.py", line 559, in delete_option_subtree
    index, item = self.findOpts(subtree, type, name, exclude_sections)
  File "/usr/lib/python2.7/site-packages/ipachangeconf.py", line 201, in findOpts
    if o['type'] == type and o['name'] == name:
TypeError: 'int' object is not subscriptable


Expected results:

No console output, successful return code; krb5.conf updated; a machine I can log into.

Additional info:

I've reproduced the above by hand,  but normally puppet is invoking authconfig for me.

"CAMPUS.NCL.AC.UK" is a pre-existing realm in my krb5.conf (which I will attach).

Comment 1 Tomas Mraz 2011-11-10 10:14:12 UTC

*** This bug has been marked as a duplicate of bug 752495 ***