#7532 ipa-advise config-client-for-smart-card-auth: enable smart card auth in sssd.conf
Closed: fixed 5 years ago Opened 5 years ago by frenaud.

Issue

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

[pam]
pam_cert_auth=True

in /etc/sssd/sssd.conf

Steps to Reproduce

  1. configure the machine as a FreeIPA client with ipa-client-install
  2. generate the script on the server with kinit admin && ipa-advise config-client-for-smart-card-auth > /tmp/config-client-for-smart-card-auth.sh
  3. copy the script on the client and execute it with sh /tmp/config-client-for-smart-card-auth.sh /path/to/CA.pem where CA.pem contains the cert for the authority that is signing the smart card certificates

Actual behavior

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.

Expected behavior

The script should also update /etc/sssd/sssd.conf

Version/Release/Distribution

master branch containing authselect code

Additional info:

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:

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

For authselect show sssd
I believe we can open issue at
'https://github.com/pbrezina/authselect/issues'

Metadata Update from @rcritten:
- Issue set to the milestone: FreeIPA 4.7.1 (was: FreeIPA 4.7)

5 years ago

FreeIPA 4.7 has been released, moving to FreeIPA 4.7.1 milestone

Metadata Update from @frenaud:
- Issue assigned to frenaud

5 years ago

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/2359

5 years ago

master:

  • 7729bb7 ipa-advise: configure pam_cert_auth=True for smart card on client

ipa-4-7:

  • 446c6c8 ipa-advise: configure pam_cert_auth=True for smart card on client

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata