Bug 263309 - x11/gdm does not unlock the user’s keyring in the course of login
Summary: x11/gdm does not unlock the user’s keyring in the course of login
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-15 22:58 UTC by cyclaero
Modified: 2022-04-18 01:04 UTC (History)
1 user (show)

See Also:
nc: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cyclaero 2022-04-15 22:58:43 UTC
The keyring does not become unlocked because the file /usr/local/etc/pam.d/gdm-password is missing the respective directives for invoking the gnome-keyring-daemon.

I copied over said file from an old gdm-3.28.4_6 installation, and this resolved the issue:

# $OpenBSD: gdm-password,v 1.4 2012/10/10 08:47:14 ajacoutot Exp $
#
# gdm-password settings for pam(3)

auth		include		system
auth		optional	/usr/local/lib/pam_ck_connector.so
auth		optional	/usr/local/lib/pam_gnome_keyring.so

account		required	pam_nologin.so
account		include		system

password	include		system

session		include		system
session		optional	/usr/local/lib/pam_gnome_keyring.so auto_start
Comment 1 Neel Chauhan freebsd_committer freebsd_triage 2022-04-16 20:32:04 UTC
Thanks for reporting this bug. I will commit your requested changes as an update.
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-04-16 20:32:52 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a21252d17fda424c84c09f9a3af2d9f27d5107ce

commit a21252d17fda424c84c09f9a3af2d9f27d5107ce
Author:     Neel Chauhan <nc@FreeBSD.org>
AuthorDate: 2022-04-16 20:30:50 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2022-04-16 20:32:34 +0000

    x11/gdm: Unlock the user's keyring during login

    PR:             263309
    Reported by:    cyclaero AT gmail DOT com

 x11/gdm/Makefile               | 2 +-
 x11/gdm/files/gdm-autologin.in | 4 ++++
 x11/gdm/files/gdm-password.in  | 4 ++++
 3 files changed, 9 insertions(+), 1 deletion(-)
Comment 3 cyclaero 2022-04-17 14:50:29 UTC
Thank you very much for the quick fix. It does work.

I closely accompany GNOME on FreeBSD and I am very glad and thankful that it became updated and on how well it is maintained since 1.5 years.

Please keep up the great work.

Best regards

Rolf
Comment 4 Neel Chauhan freebsd_committer freebsd_triage 2022-04-18 01:04:56 UTC
(In reply to cyclaero from comment #3)
You're welcome and thanks for the kind words!

I actually use GNOME on FreeBSD myself also, so I have an incentive to have a usable desktop.

Previously, GNOME on FreeBSD was poorly maintained, while KDE was very well maintained, so I tried switching to KDE but didn't like it. No offense to KDE fans, they have a right to like KDE the way I like GNOME.