archive mirror
 help / color / mirror / Atom feed
* Problem storing credentials with pam_cifscreds on desktop systems
@ 2021-06-20 14:06 Kim Henriksen
  0 siblings, 0 replies; only message in thread
From: Kim Henriksen @ 2021-06-20 14:06 UTC (permalink / raw)
  To: linux-cifs

I wish to store CIFS credentials during login on a desktop, but I've
hit a brick wall, and my google foo has failed me.

When I login via the desktop environment no CIFS credentials are
available, but it works fine using SSH.

I have tried with Ubuntu 20.04 and Fedora 34, but same result.

This is how my Fedora installation is configured:

pam_cifscreds.x86_64      6.11-3.fc34

I have added these lines to: /etc/pam.d/{gdm-password,login,sshd}

auth          optional debug
session     optional force revoke
session     optional host=<myserver> debug

From the journal log when logging in can see the credentials gets stored:

gdm-password][3362]: pam_cifscreds(gdm-password:session): credential
key for \\<myserver>\<myuser> added
sshd[2835]: pam_cifscreds(sshd:session): credential key for
\\<myserver>\<myuser added

But I can't see the CIFS credentials in my desktop session:

$ keyctl show
Session Keyring
 882498672 --alswrv   1000  1000  keyring: _ses
1026128626 --alswrv   1000 65534   \_ keyring: _uid.1000

But when I login using SSH they are there:

$ keyctl show
Session Keyring
 145928652 --alswrv   1000  1000  keyring: _ses
1026128626 --alswrv   1000 65534   \_ keyring: _uid.1000
 802829928 ----sw-v      0     0   \_ logon: cifs:a:<myserver>

I'm not totally sure, but I think the problem in general is related to

Kim Henriksen

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-20 14:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-20 14:06 Problem storing credentials with pam_cifscreds on desktop systems Kim Henriksen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).