I did a poor job of testing the test plan; the bug is not reproducible in
Resolute using the above test plan. There are two modifications that are needed:

1. `sssd-gdm-smartcard-pam-auth-tester.sh` has a bug that causes gdm to ignore
the softhsm token [1]. For Resolute verification, use the fixed branch from my
fork instead of ubuntu/resolute-devel:

```
git clone --depth 1 -b fix-pam-auth-tester-49plus 
https://salsa.debian.org/MggMuggins/gdm.git /usr/local/src/gdm
```

2. There is a bug in gnome-shell [2] that causes the user info to be available
at the beginning of the PAM conversation (by killing the first pam convo); IIUC
this means that the gdm-session-worker loads the user information too soon in
its state machine to cause the hang.

For Resolute verification, I built a PPA package from the branch at [3];
see [4].

[1] https://salsa.debian.org/gnome-team/gdm/-/merge_requests/58
[2] https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2170508
[3] https://salsa.debian.org/gnome-team/gnome-shell/-/merge_requests/138/diffs
[4] https://launchpad.net/~whershberger/+archive/ubuntu/lp2170508-proposed

### Verification done Resolute ###

Reproduced the hang with the following package versions:

```
root@rv2:~# apt policy gnome-shell gdm3
gnome-shell:
  Installed: 50.1-0ubuntu1.4+lp2170508.20261130b1
  Candidate: 50.1-0ubuntu1.5
  Version table:
     50.1-0ubuntu1.5 500
        500 http://archive.ubuntu.com/ubuntu resolute-updates/main amd64 
Packages
        500 http://security.ubuntu.com/ubuntu resolute-security/main amd64 
Packages
 *** 50.1-0ubuntu1.4+lp2170508.20261130b1 500
        500 
https://ppa.launchpadcontent.net/whershberger/lp2170508-proposed/ubuntu 
resolute/main amd64 Packages
        100 /var/lib/dpkg/status
     50.1-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu resolute/main amd64 Packages
gdm3:
  Installed: 50.1-0ubuntu0.1
  Candidate: 50.1-0ubuntu0.1
  Version table:
 *** 50.1-0ubuntu0.1 500
        500 http://archive.ubuntu.com/ubuntu resolute-updates/main amd64 
Packages
        100 /var/lib/dpkg/status
     50.0-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu resolute/main amd64 Packages
```

Behavior is fixed with gdm3 from resolute-proposed:

```
root@rv2:~# apt policy gnome-shell gdm3
gnome-shell:
  Installed: 50.1-0ubuntu1.4+lp2170508.20261130b1
  Candidate: 50.1-0ubuntu1.5
  Version table:
     50.1-0ubuntu1.5 500
        500 http://archive.ubuntu.com/ubuntu resolute-updates/main amd64 
Packages
        500 http://security.ubuntu.com/ubuntu resolute-security/main amd64 
Packages
 *** 50.1-0ubuntu1.4+lp2170508.20261130b1 500
        500 
https://ppa.launchpadcontent.net/whershberger/lp2170508-proposed/ubuntu 
resolute/main amd64 Packages
        100 /var/lib/dpkg/status
     50.1-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu resolute/main amd64 Packages
gdm3:
  Installed: 50.3-0ubuntu0.1
  Candidate: 50.3-0ubuntu0.1
  Version table:
 *** 50.3-0ubuntu0.1 100
        100 http://archive.ubuntu.com/ubuntu resolute-proposed/main amd64 
Packages
        100 /var/lib/dpkg/status
     50.1-0ubuntu0.1 500
        500 http://archive.ubuntu.com/ubuntu resolute-updates/main amd64 
Packages
     50.0-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu resolute/main amd64 Packages
root@rv2:~# systemctl kill -s STOP accounts-daemon
root@rv2:~# systemctl kill -s CONT accounts-daemon
```

Smartcard login successful after sending SIGCONT to accounts-daemon.

### Verification done Resolute ###

** Tags removed: verification-needed-resolute
** Tags added: verification-done-resolute

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gdm3 in Ubuntu.
https://bugs.launchpad.net/bugs/2174023

Title:
  smartcard login attempt hangs when accounts-daemon is slow

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2174023/+subscriptions


-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to