Verified.
Version ::
sssd-2.2.0-19.el8_1.1.x86_64
Results ::
First reproducing with sssd-2.0.0-43.el8_0.3.x86_64
[root@rhel8-3 ~]# authselect enable-feature with-smartcard-required
[root@rhel8-3 ~]# authselect enable-feature with-smartcard-lock-on-removal
[root@rhel8-3 ~]# systemctl stop sssd; rm -rf /var/lib/sss/{db,mc}/*; systemctl start sssd
[root@rhel8-3 ~]# systemctl restart gdm
[root@rhel8-3 ~]# tail -1 -f /var/log/secure
...
Mar 25 11:03:20 rhel8-3 gdm-smartcard][5319]: pam_sss(gdm-smartcard:auth): User info message: Please enter smart card labeled#012 sctest (MyEID)
Mar 25 11:03:24 rhel8-3 gdm-smartcard][5329]: pam_sss(gdm-smartcard:auth): User info message: Please enter smart card labeled#012 sctest (MyEID)
Mar 25 11:03:29 rhel8-3 gdm-smartcard][5339]: pam_sss(gdm-smartcard:auth): User info message: Please enter smart card labeled#012 sctest (MyEID)
Mar 25 11:03:33 rhel8-3 gdm-smartcard][5349]: pam_sss(gdm-smartcard:auth): User info message: Please enter smart card labeled#012 sctest (MyEID)
Mar 25 11:03:37 rhel8-3 gdm-smartcard][5359]: pam_sss(gdm-smartcard:auth): User info message: Please enter smart card labeled#012 sctest (MyEID)
Mar 25 11:03:42 rhel8-3 gdm-smartcard][5377]: pam_sss(gdm-smartcard:auth): User info message: Please enter smart card labeled#012 sctest (MyEID)
Mar 25 11:03:46 rhel8-3 gdm-smartcard][5396]: pam_sss(gdm-smartcard:auth): User info message: Please enter smart card labeled#012 sctest (MyEID)
When Screensaver appears trigger login and I see:
Please enter smart card labeled...
Sorry that didn't work, please try again
looping every few seconds.
Now verifying after upgrading to: sssd-2.2.0-19.el8_1.1.x86_64
[root@rhel8-3 ~]# systemctl stop sssd; rm -rf /var/lib/sss/{db,mc}/*; systemctl start sssd
[root@rhel8-3 ~]# systemctl restart gdm
[root@rhel8-3 ~]# tail -f /var/log/secure
...
Mar 25 11:10:59 rhel8-3 gdm-smartcard][7815]: pam_sss(gdm-smartcard:auth): User info message: Please enter smart card labeled#012 sctest (MyEID)
In the gnome session, I pulled the card and the screen locked. I slide up to access login and it prompts:
Please enter smart card labeled
sctest (MyEID)
I see no loop and only one error message in /var/log/secure.
I reinsert the card, it prompts for pin and I log back in and see this in secure:
Mar 25 11:13:31 rhel8-3 gdm-smartcard][7870]: pam_sss(gdm-smartcard:auth): authentication success; logname= uid=0 euid=0 tty=/dev/tty2 ruser= rhost= user=ipauser1
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2020:1377