Hi,

This patch makes sure that sss is not removed from nsswitch.conf
which causes probles with later uses of sssd. Makes sure that
authconfig with --disablesssd option is not executed during
ipa client uninstall.

https://fedorahosted.org/freeipa/ticket/3577

Tomas
>From e8b9c4757a9e8f575e037c3293644d06af74eccc Mon Sep 17 00:00:00 2001
From: Tomas Babej <tba...@redhat.com>
Date: Mon, 22 Apr 2013 11:37:33 +0200
Subject: [PATCH] Avoid removing sss from nssswitch.conf during client
 uninstall

This patch makes sure that sss is not removed from nsswitch.conf
which causes probles with later uses of sssd. Makes sure that
authconfig with --disablesssd option is not executed during
ipa client uninstall.

https://fedorahosted.org/freeipa/ticket/3577
---
 ipa-client/ipa-install/ipa-client-install | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install
index 29adc93f3bcb3ccc81c31237af314af0ba61b8c9..6dfeaabe88186d4034f2b4b6cc28c890e7bb4d02 100755
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -445,7 +445,7 @@ def uninstall(options, env):
             # disable only those configurations that we enabled during install
             for conf in ('ldap', 'krb5', 'sssd', 'sssdauth', 'mkhomedir'):
                 cnf = statestore.restore_state('authconfig', conf)
-                if cnf:
+                if cnf and conf != 'sssd':
                     auth_config.disable(conf)
         else:
             # There was no authconfig status store
@@ -456,8 +456,7 @@ def uninstall(options, env):
             if not(was_sssd_installed and was_sssd_configured):
                 # assume there was sssd.conf before install and there were more than one domain in it
                 # In such case restoring sssd.conf will require us to keep SSSD running
-                auth_config.disable("sssd").\
-                            disable("sssdauth")
+                auth_config.disable("sssdauth")
             auth_config.disable("mkhomedir")
 
         auth_config.add_option("update")
-- 
1.8.1.4

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to