all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Filipp Gunbin <fgunbin@fastmail.fm>
To: bk@asterio.cloud
Cc: 58807@debbugs.gnu.org
Subject: bug#58807: 28.1; Authentication in Gnus using password-store backend of auth-source
Date: Thu, 27 Oct 2022 17:04:18 +0300	[thread overview]
Message-ID: <m2wn8ltlb1.fsf@fastmail.fm> (raw)
In-Reply-To: <6fcf0ae0613b7de0702fce4897257b52@asterio.cloud> (bk@asterio.cloud's message of "Wed, 26 Oct 2022 21:30:57 +0200")

Hi,

On 26/10/2022 21:30 +0200, bk@asterio.cloud wrote:

[...]

> According to documentation [1] I tried numerous of entries of my user
> password in pass:
> pass ls
> Password Store
> ├── 127.0.0.1
> │   └── bk@asterio.cloud
> ├── bk@asterio.cloud@127.0.0.1
> ├── bk@asterio.cloud@localhost
> └── localhost
>     └── bk@asterio.cloud
>

Looks like you forgot to gpg-encrypt the files, while the code
explicitly looks for them:

--8<---------------cut here---------------start------------->8---
(defun auth-source-pass-entries ()
  "Return a list of all password store entries."
  (let ((store-dir (expand-file-name auth-source-pass-filename)))
    (mapcar
     (lambda (file) (file-name-sans-extension (file-relative-name file store-dir)))
     (directory-files-recursively store-dir "\\.gpg\\'"))))
--8<---------------cut here---------------end--------------->8---

I tested using setup similar to yours, but with gpg files -- it worked.

Filipp





  parent reply	other threads:[~2022-10-27 14:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-26 19:30 bug#58807: 28.1; Authentication in Gnus using password-store backend of auth-source bk
2022-10-27  9:08 ` Robert Pluim
2022-10-27  9:15   ` Bartosz Kaczyński
2022-10-27  9:45     ` Robert Pluim
2022-10-27 13:19       ` Eli Zaretskii
2022-10-27 14:04 ` Filipp Gunbin [this message]
2022-10-27 16:28   ` Robert Pluim
2022-10-27 17:55     ` Filipp Gunbin
2022-10-28  7:38       ` Robert Pluim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2wn8ltlb1.fsf@fastmail.fm \
    --to=fgunbin@fastmail.fm \
    --cc=58807@debbugs.gnu.org \
    --cc=bk@asterio.cloud \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.