Subject: Re: bug#58807: 28.1; Authentication in Gnus using password-store backend of auth-source

From: Filipp Gunbin <[email-masked]>
Date: Thu, 27 Oct 2022 17:04:18 +0300

Hi,

On 26/10/2022 21:30 +0200, [email-masked] wrote:

[...]

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

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