mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
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 <akokshar@redhat.com> Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
parent
e442464509
commit
8fe5f8d2e7
@ -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'
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user