commit:     72e814a219cbed50155c65432f5389c82d73df96
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  5 20:51:58 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Sep  5 20:51:58 2025 +0000
URL:        https://gitweb.gentoo.org/proj/pambase.git/commit/?id=72e814a2

Keep pam_gnome_keyring in passwd too

We want to update pam_gnome_keyring's record of the user's password
so it can be decrypted.

Fixes: 74cbdaf50983f1eb06f82bdb5fbe7f762b859dd3
Bug: https://github.com/gentoo/pambase/issues/8
Signed-off-by: Sam James <sam <AT> gentoo.org>

 templates/passwd.tpl | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/templates/passwd.tpl b/templates/passwd.tpl
index 0bde2a3..951f321 100644
--- a/templates/passwd.tpl
+++ b/templates/passwd.tpl
@@ -2,3 +2,7 @@ auth            sufficient      pam_rootok.so
 auth           include         system-auth
 account                include         system-auth
 password       include         system-auth
+
+{% if gnome_keyring %}
+password       optional        pam_gnome_keyring.so use_authtok
+{% endif %}

Reply via email to