Gnus development mailing list
 help / color / mirror / Atom feed
* Unable to authenticate to local dovecot server in Gnus using password-store as auth-source backend
@ 2022-10-26 19:08 bk
  2022-10-27  8:24 ` Robert Pluim
  0 siblings, 1 reply; 4+ messages in thread
From: bk @ 2022-10-26 19:08 UTC (permalink / raw)
  To: ding

Hi,

As is written in subject I can't authenticate to my local dovecot server 
when I have enabled pass backend in auth-source. I don't have this 
problem in default ~/.authinfo file. If it's not exist it's generated by 
Emacs and contain line as follows:
machine localhost login bk@asterio.cloud password pass

My minimal ~/.emacs file
(setq auth-source-debug 'trivia)
(setq auth-sources '(password-store))

(setq gnus-select-method '(nnnil ""))
(setq gnus-secondary-select-methods
       '((nnimap "localhost"
		(nnimap-address "127.0.0.1")
		(nnimap-stream network)
		(nnimap-authenticator login)
		(nnimap-server-port 1143)
		(nnimap-user "bk@asterio.cloud"))))

According to documentation [1] I tried numerous of entries of my user 
password entry 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

But none of this works and in *Messages* buffer I have always following 
logs:
auth-source-backend-parse: invalid backend spec: password-store
auth-source-search: found 1 backends matching (:max 1 :host ("localhost" 
"127.0.0.1") :port (1143 "imap" "143") :user "bk@asterio.cloud" :require 
(:user :secret) :create t)
auth-source-search: found 0 results (max 1) matching (:max 1 :host 
("localhost" "127.0.0.1") :port (1143 "imap" "143") :user 
"bk@asterio.cloud" :require (:user :secret) :create t)
auth-source-search: CREATED 0 results (max 1) matching (:max 1 :host 
("localhost" "127.0.0.1") :port (1143 "imap" "143") :user 
"bk@asterio.cloud" :require (:user :secret) :create t)
Opening nnimap server on localhost...failed:

Does anyone has similar setup and it works?

[1] 
https://www.gnu.org/software/emacs/manual/html_node/auth/The-Unix-password-store.html


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-10-27  9:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-26 19:08 Unable to authenticate to local dovecot server in Gnus using password-store as auth-source backend bk
2022-10-27  8:24 ` Robert Pluim
2022-10-27  8:43   ` Emanuel Berg
2022-10-27  9:18     ` Bartosz Kaczyński

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).