6502droid - 3 days ago

Hi Everyone,

First of all, thank you so much for all you are doing to keep this software alive.

There appears to be an issue with the lock screen on CDE with NetBSD 10.1. I am running the AMD64 build of NetBSD.

When clicking the lock icon on the front panel I am presented with the usual CDE lock screen. Entering my password unlocks the system no problem the first time.

The trouble presents itself when locking the screen a second time and attempting to unlock it. Typing my password has no effect. I know the keyboard is working because punching a key brings up the password dialog box.

Thinking that perhaps the latest CDE (2.5.3) introduced a bug, I compiled the previous version (2.5.2) on NetBSD 10.1. The same problems were observed on the older version as well.

Poking around in the configuration script, I found that CDE on NetBSD and Linux are configured to use PAM for authentication. I had installed the required pkgsrc package for PAM as outlined in the wiki, so I do not think that is the issue. That is when I had an idea. Does CDE 2.5.3 work on NetBSD 10.1 without PAM support compiled in? I modified the configuration script to prevent enabling PAM support on NetBSD and recompiled it. Presto! Unlocking works every time.

Reading around in the forums, I discovered where people had unlock using PAM working reliably on the NetBSD 9 series. So I set off to compile CDE 2.5.3 on NetBSD 9.4 to see if this issue is present there. To my surprise, I run into the same problem on NetBSD 9.4. Unlocking only works the first time.

I plan to test this on NetBSD 9.2 and if that yields no changes, maybe try an older version of pkgsrc. Maybe the pwauth suid PAM module is broken?

Has anyone else run into the same issue? Do you know of any configuration settings I could check?