7a19c0d smartcard: make the ipa-advise script compatible with authselect/authconfig

1 file Authored by frenaud 4 years ago, Committed by abbra 4 years ago,
    smartcard: make the ipa-advise script compatible with authselect/authconfig
    
    "ipa-advise config-client-for-smart-card-auth" is run on a server and
    creates a script that needs to be copied and executed on a client.
    The client may be of a different version and use authconfig instead of
    authselect. The generated script must be able to handle both cases
    (client using authselect or client using authconfig).
    
    The patch checks whether authselect is available and calls the proper
    configuration command (authselect or authconfig) depending on its
    availability on the client.
    
    Fixes: https://pagure.io/freeipa/issue/8113
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>