From: Robert Pluim <rpluim@gmail.com>
To: bk@asterio.cloud
Cc: ding@gnus.org
Subject: Re: Unable to authenticate to local dovecot server in Gnus using password-store as auth-source backend
Date: Thu, 27 Oct 2022 10:24:10 +0200 [thread overview]
Message-ID: <87o7txvfmd.fsf@gmail.com> (raw)
In-Reply-To: <e49eedc90b9f1c67816f34d9bc1785c8@asterio.cloud> (bk@asterio.cloud's message of "Wed, 26 Oct 2022 21:08:33 +0200")
>>>>> On Wed, 26 Oct 2022 21:08:33 +0200, bk@asterio.cloud said:
bk> My minimal ~/.emacs file
bk> (setq auth-source-debug 'trivia)
bk> (setq auth-sources '(password-store))
bk> (setq gnus-select-method '(nnnil ""))
bk> (setq gnus-secondary-select-methods
bk> '((nnimap "localhost"
bk> (nnimap-address "127.0.0.1")
bk> (nnimap-stream network)
bk> (nnimap-authenticator login)
bk> (nnimap-server-port 1143)
bk> (nnimap-user "bk@asterio.cloud"))))
Iʼve never used pass, but thatʼs not how the manual describes enabling
'pass' support. From (info "(auth) Help for users")
-- Variable: auth-sources
The ‘auth-sources’ variable tells the auth-source library where
your netrc files, Secret Service API collection items, or your
password store live for a particular host and protocol. While you
can get fancy, the default and simplest configuration is:
;;; old default: required :host and :port, not needed anymore
(setq auth-sources '((:source "~/.authinfo.gpg" :host t :port t)))
;;; mostly equivalent (see below about fallbacks) but shorter:
(setq auth-sources '((:source "~/.authinfo.gpg")))
;;; even shorter and the _default_:
(setq auth-sources '("~/.authinfo.gpg" "~/.authinfo" "~/.netrc"))
;;; use the Secrets API LOGIN collection
;;; (*note Secret Service API::)
(setq auth-sources '("secrets:Login"))
;;; use pass (~/.password-store)
;;; (*note The Unix password store::)
(auth-source-pass-enable) <--------------------------
;;; JSON data in format [{ "machine": "SERVER",
;;; "login": "USER", "password": "PASSWORD" }...]
(setq auth-sources '("~/.authinfo.json.gpg"))
Robert
--
next prev parent reply other threads:[~2022-10-27 8:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-26 19:08 bk
2022-10-27 8:24 ` Robert Pluim [this message]
2022-10-27 8:43 ` Emanuel Berg
2022-10-27 9:18 ` Bartosz Kaczyński
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=87o7txvfmd.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=bk@asterio.cloud \
--cc=ding@gnus.org \
/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.
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).