From 8fe5f8d2e73c5ada6f9f8149d1410c7e26acacf5 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Thu, 26 Apr 2018 16:56:08 +0200 Subject: [PATCH] ipa-advise: adapt config-client-for-smart-card-auth to authselect ipa-advise config-client-for-smart-card-auth was producing a shell script calling authconfig. With the migration from authconfig to authselect, the script needs to be updated and call authselect enable-feature with-smartcard instead. Related to https://pagure.io/freeipa/issue/7377 Reviewed-By: Alexander Koksharov Reviewed-By: Florence Blanc-Renaud Reviewed-By: Christian Heimes --- ipaserver/advise/plugins/smart_card_auth.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ipaserver/advise/plugins/smart_card_auth.py b/ipaserver/advise/plugins/smart_card_auth.py index 1967cfe3c..e8b2bb67f 100644 --- a/ipaserver/advise/plugins/smart_card_auth.py +++ b/ipaserver/advise/plugins/smart_card_auth.py @@ -238,7 +238,7 @@ class config_client_for_smart_card_auth(common_smart_card_auth_config): self.add_pkcs11_module_to_systemwide_db() self.upload_smartcard_ca_certificates_to_systemwide_db() self.update_ipa_ca_certificate_store() - self.run_authconfig_to_configure_smart_card_auth() + self.run_authselect_to_configure_smart_card_auth() self.restart_sssd() def check_and_remove_pam_pkcs11(self): @@ -290,10 +290,9 @@ class config_client_for_smart_card_auth(common_smart_card_auth_config): ] ) - def run_authconfig_to_configure_smart_card_auth(self): + def run_authselect_to_configure_smart_card_auth(self): self.log.exit_on_failed_command( - 'authconfig --enablesssd --enablesssdauth --enablesmartcard ' - '--smartcardmodule=sssd --smartcardaction=1 --updateall', + 'authselect enable-feature with-smartcard', [ 'Failed to configure Smart Card authentication in SSSD' ]