From 31ed6f2b3f1ab45ae07aad41c13a51ba91fd159d Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Mon, 15 Aug 2016 14:11:01 -0400 Subject: pam: grab cached password from systemd and pass it on If the user has an encrypted disk then systemd will cache the password they type into the keyring. It makes sense to try to use this password for automatic login purposes first, since on single user machines, the sole user password is likely to match the disk password. Of course if it doesn't work we'll fall back to the old way of doing automatic login without a password (and then the user will have to manualy enter if they need to for gnome-keyring or whatever) https://bugzilla.gnome.org/show_bug.cgi?id=769950 --- data/pam-lfs/gdm-autologin.pam | 3 +++ 1 file changed, 3 insertions(+) (limited to 'data/pam-lfs') diff --git a/data/pam-lfs/gdm-autologin.pam b/data/pam-lfs/gdm-autologin.pam index 13ac13ac..953d47e6 100644 --- a/data/pam-lfs/gdm-autologin.pam +++ b/data/pam-lfs/gdm-autologin.pam @@ -4,6 +4,8 @@ auth requisite pam_nologin.so auth required pam_env.so auth required pam_succeed_if.so uid >= 1000 quiet +auth optional pam_gdm.so +auth optional pam_gnome_keyring.so auth required pam_permit.so account include system-account @@ -12,5 +14,6 @@ password include system-password session optional pam_keyinit.so revoke session required pam_limits.so session include system-session +session optional pam_gnome_keyring.so auto_start # End /etc/pam.d/gdm-autologin -- cgit v1.2.1