ipa-advise config-client-for-smart-card-auth produces a shell script that should be run on IPA clients where we want to enable smart card authentication. After the migration to authselect instead of authconfig, this script does not completely configure SSSD and is missing the addition of
ipa-advise config-client-for-smart-card-auth
[pam] pam_cert_auth=True
in /etc/sssd/sssd.conf
kinit admin && ipa-advise config-client-for-smart-card-auth > /tmp/config-client-for-smart-card-auth.sh
sh /tmp/config-client-for-smart-card-auth.sh /path/to/CA.pem
After the script execution, /etc/sssd/sssd.conf should contain pam_cert_auth=True but does not, thus preventing successful console/gnome login with a smart card.
The script should also update /etc/sssd/sssd.conf
master branch containing authselect code
Before the authselect migration, the script was containing the following call: authconfig --enablesssd --enablesssdauth --enablesmartcard --smartcardmodule=sssd --smartcardaction=1 --updateall With authselect, the script is containing the following call: authselect enable-feature with-smartcard but the help for authselect show sssd specifies the following:
authconfig --enablesssd --enablesssdauth --enablesmartcard --smartcardmodule=sssd --smartcardaction=1 --updateall
authselect enable-feature with-smartcard
authselect show sssd
with-smartcard:: Enable authentication with smartcards through SSSD. Please note that smartcard support must be also explicitly enabled within SSSD's configuration.
meaning that the step updating sssd.conf needs to be done separately.
I tested the same. Now script adds following stanza in sssd.conf. [pam] pam_cert_auth = True
[pam]
pam_cert_auth = True
For authselect show sssd I believe we can open issue at 'https://github.com/pbrezina/authselect/issues'
'https://github.com/pbrezina/authselect/issues'
Metadata Update from @rcritten: - Issue set to the milestone: FreeIPA 4.7.1 (was: FreeIPA 4.7)
FreeIPA 4.7 has been released, moving to FreeIPA 4.7.1 milestone
Metadata Update from @frenaud: - Issue assigned to frenaud
Metadata Update from @frenaud: - Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/2359
master:
ipa-4-7:
Metadata Update from @frenaud: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.