Bug 604699 - ipa-client-install --uninstall fails if installed with --no-sssd option
Summary: ipa-client-install --uninstall fails if installed with --no-sssd option
Status: CLOSED DUPLICATE of bug 604704
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Rob Crittenden
Depends On: 604704
TreeView+ depends on / blocked
Reported: 2010-06-16 14:20 UTC by Jenny Galipeau
Modified: 2011-10-20 20:34 UTC (History)
4 users (show)

Clone Of:
Last Closed: 2010-06-16 17:23:00 UTC

Attachments (Terms of Use)

Description Jenny Galipeau 2010-06-16 14:20:48 UTC
Description of problem:
If the ipa-client-install is executed with --no-sssd option, ipa-client--uninstall fails:

[root@jennyv2 ~]# ipa-client-install --uninstall
Removing Kerberos service principals from /etc/krb5.keytab
Disabling client Kerberos and Ldap configurations
Failed to remove krb5/ldap configuration. Command '/usr/sbin/authconfig --disableldap --disablekrb5 --disablesssd --disablesssdauth --disablemkhomedir --update' returned non-zero exit status 1
[root@jennyv2 ~]# ipa-client-install --no-sssd
IPA client is already configured on this system.

[root@jennyv2 ~]# /usr/sbin/authconfig --disableldap --disablekrb5 --disablesssd --disablesssdauth --disablemkhomedir --update
Traceback (most recent call last):
  File "/usr/sbin/authconfig", line 894, in <module>
  File "/usr/sbin/authconfig", line 478, in run
  File "/usr/sbin/authconfig", line 329, in readAuthInfo
    self.info = authinfo.read(self.printError)
  File "/usr/share/authconfig/authinfo.py", line 922, in read
  File "/usr/share/authconfig/authinfo.py", line 2174, in read
  File "/usr/share/authconfig/authinfo.py", line 1531, in readSSSD
    domain = self.sssdConfig.get_domain(domname)
  File "/usr/lib/python2.6/site-packages/SSSDConfig.py", line 1456, in get_domain
    if (opt['name'], opt['value']) not in providers]
  File "/usr/lib/python2.6/site-packages/SSSDConfig.py", line 888, in set_option
    (self.name, option))
SSSDConfig.NoOptionError: Section [ldap] has no option [mid_id]

Therefore the uninstall needs a --no-sssd option too - or even better - should automatically detect that sssd is not being used.

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

How reproducible:

Steps to Reproduce:
1. ipa-client-install --no-sssd
2. ipa-client--uninstall
Actual results:

Expected results:

Additional info:

Comment 2 RHEL Product and Program Management 2010-06-16 14:32:54 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for

Comment 3 Dmitri Pal 2010-06-16 15:19:20 UTC
IMO the right way to fix this bug is to fix the bug https://bugzilla.redhat.com/show_bug.cgi?id=604704. Adding it as dependency.
I am not sure we need to duplicate the checks in the ipa-client to make sure that SSSD was not configured.

Comment 4 Stephen Gallagher 2010-06-16 17:23:00 UTC

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

Note You need to log in before you can comment on or make changes to this bug.