Bug 16825 - keyring is not unlocked
Summary: keyring is not unlocked
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: GNOME maintainers
QA Contact:
URL:
Whiteboard:
Keywords: NEEDHELP, PATCH
: 17273 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-09-25 12:13 CEST by Götz Waschk
Modified: 2018-07-12 13:20 CEST (History)
10 users (show)

See Also:
Source RPM: gnome-keyring
CVE:
Status comment:


Attachments

Description Götz Waschk 2015-09-25 12:13:08 CEST
I have upgraded my system from Mageia 4 to 5. Now, I have to type my password twice, as the gnome keyring is not unlocked. I'm using gdm and the gnome3 environment.

I have tried to change the password using passwd, no change.

Reproducible: 

Steps to Reproduce:
Comment 1 Damien Genthial 2015-09-28 07:53:45 CEST
I have the same issue. after migrating from Mageia3 to Mageia5. We use Gnome-keyring to automatically unlock our samba based printing system.

The printing system ask for a password, but when we check "Remember the password", it is stored in a new keyring, not in the login keyring, because it hasn't been unlocked at login.

CC: (none) => Damien.Genthial

Comment 2 Samuel Verschelde 2015-09-28 09:02:23 CEST
Thanks for reporting this bug. Unfortunately our maintainers database knows no maintainer for gnome-keyring, although Olav Vitters might be the de facto one.

Olav, are you maintaining this package? If so please assign the bug report to yourself and add yourself in the maintainers database. There's also gnome-keyring-sharp.

CC: (none) => olav, tarakbumba

Davy Defaud 2015-10-09 15:12:30 CEST

CC: (none) => davy.defaud

Comment 3 a b 2015-10-11 04:42:36 CEST
I have been running into this too ever since I upgraded to Mageia 5. So I finally dug around a bit and found the issue: pam_gnome_keyring.so is not being run due to short-circuiting in /etc/pam.d/gdm . The fix is as follows:

--- /etc/pam.d/gdm.rpmorig      2015-05-28 11:59:07.000000000 -0700
+++ /etc/pam.d/gdm      2015-10-10 19:22:16.060131976 -0700
@@ -1,7 +1,7 @@
 #%PAM-1.0
 auth       required    pam_env.so
 auth       sufficient  pam_succeed_if.so user ingroup nopasswdlogin
-auth       include     system-auth
+auth       substack    system-auth
 auth       optional    pam_gnome_keyring.so
 account    include     system-auth
 password   include     system-auth

This exact scenario is described in the "Advanced Configuration" section of https://wiki.gnome.org/Projects/GnomeKeyring/Pam#Advanced_configuration . Interestingly enough, Mageia 4 had "substack", and I have no idea why this was changed; also, gdm-pin is correct here.

CC: (none) => mageia824

Comment 4 Olav Vitters 2015-10-11 15:48:17 CEST
Colin, could you confirm?

CC: (none) => mageia

Comment 5 Colin Guthrie 2015-10-12 11:11:20 CEST
I also get this but I assumed it was because I had various options disabled.

I suspect it's a simple matter of updating the pam.d file to unlock the key ring properly.

I suspect the fix is as above. Our merging of the pam files is always tricky but this seems sensible to be (with my limited pam knowledge).
Comment 6 Davy Defaud 2015-10-19 11:50:52 CEST
I can confirm that switching the gdm auth from "include system-auth" to "substack system-auth" worked for me. It wouldn't be hard to quickly provide a pam update with a so easy fix. ;-)
Comment 7 Damien Genthial 2015-10-19 15:49:01 CEST
It works also for me ! Many thanks !
Comment 8 Karpago 2015-12-25 11:27:27 CET
It solved also the problem in my PC after the migration from Mageia 4.

Many thanks!!

CC: (none) => carlo.gozzi

Comment 9 Guillaume Rousse 2015-12-28 20:20:11 CET
*** Bug 17273 has been marked as a duplicate of this bug. ***

CC: (none) => guillomovitch

Comment 10 Samuel Verschelde 2016-09-09 09:04:34 CEST
Assigning to gnome maintainer group. Easy fix included in comments.

Keywords: (none) => PATCH
Assignee: bugsquad => gnome

Olav Vitters 2016-09-19 09:35:53 CEST

CC: olav => (none)

Comment 11 Thierry Vignaud 2016-12-01 17:43:15 CET
OK, the good news is that it should work OK in Cauldron for future mga6 as we now uses /etc/pam.d/gdm-password and there's no more /etc/pam.d/gdm

CC: (none) => thierry.vignaud

Comment 12 Samuel Verschelde 2016-12-01 18:02:43 CET
(In reply to Thierry Vignaud from comment #11)
> OK, the good news is that it should work OK in Cauldron for future mga6 as
> we now uses /etc/pam.d/gdm-password and there's no more /etc/pam.d/gdm

Even after an upgrade from Mageia 5? The file will be removed?
Comment 13 Guillaume Rousse 2016-12-01 18:27:25 CET
>Even after an upgrade from Mageia 5? The file will be removed?
As any other configuration file, unless a specific behavior has been implemented: removed if not modified, renamed as gdm-password.rpmsave otherwise.
Comment 14 Olav Vitters 2017-01-17 20:17:47 CET
I have no clue about PAM. I don't want to apply something without understanding anything. Setting needhelp.

Keywords: (none) => NEEDHELP
CC: (none) => olav

Comment 15 Guillaume Rousse 2017-01-18 00:15:13 CET
'include' keyword implies direct return to the caller application if any included directive marked as 'sufficient' succeed, hence bypassing the call to pam_gnome_keyring, whereas 'substack' force evaluation of remaining directives, even if the included ones succeed.

In our case, we have:
1) auth        required      pam_env.so
2) auth        sufficient    pam_succeed_if.so user ingroup nopasswdlogin
3) auth        include       system-auth
3.1)  auth        required      pam_env.so
3.2)  auth        sufficient    pam_unix.so try_first_pass likeauth nullok
3.3)  auth        required      pam_deny.so
4) auth        optional      pam_gnome_keyring.so
5) auth        include       postlogin
In this scenario, a success for directive 3.2 will result in directives 3.3, 4 and 5 being ignored.

1) auth        required      pam_env.so
2) auth        sufficient    pam_succeed_if.so user ingroup nopasswdlogin
3) auth        substack       system-auth
3.1)  auth        required      pam_env.so
3.2)  auth        sufficient    pam_unix.so try_first_pass likeauth nullok
3.3)  auth        required      pam_deny.so
4) auth        optional      pam_gnome_keyring.so
5) auth        include       postlogin
In this scenario, a success for directive 3.2 will result in directives 3.3 only being ignored.


Another explanation is available here:
https://wiki.gnome.org/Projects/GnomeKeyring/Pam#Advanced_configuration
Comment 16 Marja Van Waes 2018-07-12 13:20:20 CEST
Closing as OLD, because I assume this isn't an issue in a maintained version of Mageia (Mageia 6 and cauldron), because of comment #11 :
> OK, the good news is that it should work OK in Cauldron for future mga6 as
> we now uses /etc/pam.d/gdm-password and there's no more /etc/pam.d/gdm

@ Götz

Please reopen this report and change its "Version:" at the top left to "6", if the same bug still exists in Mageia 6.

==> If you didn't reset your password after february 2018, then you'll need to reset it here https://identity.mageia.org/forgot_password to be able to log in and comment in this report. <==

CC: (none) => marja11
Resolution: (none) => OLD
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.