commit:     0989209d6a0d5040b8c303b6acf7084a2220688c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 13 10:11:14 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Oct 13 10:11:52 2025 +0000
URL:        https://gitweb.gentoo.org/proj/pambase.git/commit/?id=0989209d

gnome-keyring: only set use_authtok for 'password'

Noticed this when thinking about the linked bug. 
https://wiki.gnome.org/Projects(2f)GnomeKeyring(2f)Pam.html
says:
> use_authtok
>  valid for groups: password

Bug: https://bugs.gentoo.org/964268
Signed-off-by: Sam James <sam <AT> gentoo.org>

 templates/system-local-login.tpl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/system-local-login.tpl b/templates/system-local-login.tpl
index 3cdf883..f133719 100644
--- a/templates/system-local-login.tpl
+++ b/templates/system-local-login.tpl
@@ -1,6 +1,6 @@
 auth           include         system-login
 {% if gnome_keyring %}
-auth           optional        pam_gnome_keyring.so use_authtok
+auth           optional        pam_gnome_keyring.so
 {% endif %}
 account                include         system-login
 password       include         system-login
@@ -9,5 +9,5 @@ password        optional        pam_gnome_keyring.so use_authtok
 {% endif %}
 session                include         system-login
 {% if gnome_keyring %}
-session                optional        pam_gnome_keyring.so use_authtok 
auto_start
+session                optional        pam_gnome_keyring.so auto_start
 {% endif %}

Reply via email to