pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0002-freeipa-4.7.0-ipaclient-Remove-no-sssd-and-noac-options_rhbz#1614301.patch

6d47df
From c5cdd5a5f01306b3a70354d34079efe64565aa69 Mon Sep 17 00:00:00 2001
6d47df
From: Thomas Woerner <twoerner@redhat.com>
6d47df
Date: Thu, 9 Aug 2018 12:05:26 +0200
6d47df
Subject: ipaclient: Remove --no-sssd and --no-ac options
6d47df
6d47df
Client installation with --no-sssd option has already beeen deprecated
6d47df
with https://pagure.io/freeipa/issue/5860. Authconfig support has been
6d47df
removed, therefore --no-ac option can be removed also.
6d47df
6d47df
ipatests/test_integration/test_authselect.py: Skip no_sssd and no_ac tests.
6d47df
6d47df
See: https://pagure.io/freeipa/issue/7671
6d47df
Signed-off-by: Thomas Woerner <twoerner@redhat.com>
6d47df
Reviewed-By: Christian Heimes <cheimes@redhat.com>
6d47df
---
6d47df
 ipaclient/install/client.py                  | 6 +-----
6d47df
 ipaclient/install/sssd.py                    | 9 +--------
6d47df
 ipatests/test_integration/test_authselect.py | 2 ++
6d47df
 3 files changed, 4 insertions(+), 13 deletions(-)
6d47df
6d47df
diff --git a/ipaclient/install/client.py b/ipaclient/install/client.py
6d47df
index 627351ac2..800a46734 100644
6d47df
--- a/ipaclient/install/client.py
6d47df
+++ b/ipaclient/install/client.py
6d47df
@@ -3709,11 +3709,7 @@ class ClientInstall(ClientInstallInterface,
6d47df
     def prompt_password(self):
6d47df
         return self.interactive
6d47df
 
6d47df
-    no_ac = knob(
6d47df
-        None,
6d47df
-        description="do not modify the nsswitch.conf and PAM configuration",
6d47df
-        cli_names='--noac',
6d47df
-    )
6d47df
+    no_ac = False
6d47df
 
6d47df
     force = knob(
6d47df
         None,
6d47df
diff --git a/ipaclient/install/sssd.py b/ipaclient/install/sssd.py
6d47df
index b20abde56..98b850464 100644
6d47df
--- a/ipaclient/install/sssd.py
6d47df
+++ b/ipaclient/install/sssd.py
6d47df
@@ -43,11 +43,4 @@ class SSSDInstallInterface(service.ServiceInstallInterface):
6d47df
     )
6d47df
     preserve_sssd = enroll_only(preserve_sssd)
6d47df
 
6d47df
-    no_sssd = knob(
6d47df
-        None,
6d47df
-        deprecated=True,
6d47df
-        description="Do not configure the client to use SSSD for "
6d47df
-                    "authentication",
6d47df
-        cli_names=[None, '-S'],
6d47df
-    )
6d47df
-    no_sssd = enroll_only(no_sssd)
6d47df
+    no_sssd = False
6d47df
diff --git a/ipatests/test_integration/test_authselect.py b/ipatests/test_integration/test_authselect.py
6d47df
index fa9b20265..ebf3d9892 100644
6d47df
--- a/ipatests/test_integration/test_authselect.py
6d47df
+++ b/ipatests/test_integration/test_authselect.py
6d47df
@@ -88,6 +88,7 @@ class TestClientInstallation(IntegrationTest):
6d47df
             ['ipa-client-install', '--uninstall', '-U'],
6d47df
             raiseonerr=False)
6d47df
 
6d47df
+    @pytest.mark.skip(reason="Option --no-sssd has been removed")
6d47df
     def test_install_client_no_sssd(self):
6d47df
         """
6d47df
         Test client installation with --no-sssd option.
6d47df
@@ -98,6 +99,7 @@ class TestClientInstallation(IntegrationTest):
6d47df
         msg = "Option '--no-sssd' is incompatible with the 'authselect' tool"
6d47df
         assert msg in result.stderr_text
6d47df
 
6d47df
+    @pytest.mark.skip(reason="Option --noac has been removed")
6d47df
     def test_install_client_no_ac(self):
6d47df
         """
6d47df
         Test client installation with --noac option.
6d47df
-- 
6d47df
2.17.1
6d47df