From: Lars Ingebrigtsen <larsi@gnus.org>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: Pankaj Jangid <p4j@j4d.net>, 39111@debbugs.gnu.org
Subject: bug#39111: 27.0.60; Tramp offers to save password in ~/.authinfo instead of ~/.authinfo.gpg
Date: Tue, 31 Aug 2021 01:59:42 +0200 [thread overview]
Message-ID: <87a6ky8owh.fsf@gnus.org> (raw)
In-Reply-To: <87v93n769q.fsf@gmx.de> (Michael Albinus's message of "Mon, 30 Aug 2021 09:15:13 +0200")
Michael Albinus <michael.albinus@gmx.de> writes:
>>> Same behaviour in all cases. Tramp is no longer asking to save the
>>> password.
>>
>> I'm not sure whether Tramp is supposed to (or not)? I've added Michael
>> to the CCs.
>
> Tramp is involved indirectly only in this flow. If auth-source-search
> returns a password save-function, it calls it.
I tested this now with Emacs 28 (and without ssh-agent). When saying:
C-x C-f /ssh:stories:
and filling in user name and passphrase to my ssh key, Emacs asked
whether to save the info to ~/.authinfo (which is correct behaviour in
my case, since I have .authinfo and not .authinfo.gpg).
But that doesn't happen with "emacs -Q". Hm... Oh, it also asks for a
user name in the non-Q case? Is "-Q" inhibiting usage of ~/.authinfo?
Hm... Backtrace in -Q case:
Debugger entered--Lisp error: (minibuffer-quit "")
signal(minibuffer-quit (""))
tramp-error((tramp-file-name "ssh" nil nil "stories" nil "" nil) minibuffer-q$
tramp-signal-hook-function(minibuffer-quit nil)
signal(minibuffer-quit nil)
#f(compiled-function () #<bytecode 0x1f41089b8ac3>)()
read-string("Passphrase for /ssh:stories: " nil t nil)
read-passwd("Passphrase for /ssh:stories: ")
password-read("Passphrase for /ssh:stories: " "/ssh:stories:")
tramp-read-passwd(#<process *tramp/ssh stories*>)
tramp-action-password(#<process *tramp/ssh stories*> (tramp-file-name "ssh"
tramp-process-one-action(#<process *tramp/ssh stories*> (tramp-file-name "ss
tramp-process-actions(#<process *tramp/ssh stories*> (tramp-file-name "ssh"
tramp-maybe-open-connection((tramp-file-name "ssh" nil nil "stories" nil ""
tramp-send-command((tramp-file-name "ssh" nil nil "stories" nil "" nil) "cd
Backtrace in -Q case:
Debugger entered--Lisp error: (minibuffer-quit "")
signal(minibuffer-quit (""))
tramp-error((tramp-file-name "ssh" nil nil "stories" nil "" nil) minibuffer-
tramp-signal-hook-function(minibuffer-quit nil)
signal(minibuffer-quit nil)
#f(compiled-function () #<bytecode 0x1f41089b8ac3>)()
read-string("ssh user name for stories (default larsi): " nil nil "larsi")
auth-source-netrc-create(:backend #<auth-source-backend auth-source-backend-
apply(auth-source-netrc-create (:backend #<auth-source-backend auth-source-b
auth-source-netrc-search(:backend #<auth-source-backend auth-source-backend-
apply(auth-source-netrc-search :backend #<auth-source-backend auth-source-ba
auth-source-search-backends((#<auth-source-backend auth-source-backend-157a4
auth-source-search(:max 1 nil nil :host "stories" :port "ssh" :require (:sec
tramp-read-passwd(#<process *tramp/ssh stories*>)
So the prompting comes from
(auth-source-search :max 1 nil nil :host "stories" :port "ssh" :require '(:secret) :create t)
in tramp-read-passwd, but that's apparently not called with -Q? (I'm
having troubles edebugging that function, because it bugs out if I try
to do that.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2021-08-30 23:59 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-13 9:45 bug#39111: 27.0.60; Tramp offers to save password in ~/.authinfo instead of ~/.authinfo.gpg Pankaj Jangid
2020-10-30 14:30 ` Lars Ingebrigtsen
2020-10-31 7:21 ` Pankaj Jangid
2021-08-30 1:30 ` Lars Ingebrigtsen
2021-08-30 7:15 ` Michael Albinus
2021-08-30 23:59 ` Lars Ingebrigtsen [this message]
2021-08-31 8:13 ` Michael Albinus
2021-09-01 7:50 ` Lars Ingebrigtsen
2021-09-01 9:51 ` Michael Albinus
2021-09-02 13:56 ` Pankaj Jangid
2021-09-03 5:59 ` Lars Ingebrigtsen
2021-09-04 7:14 ` Michael Albinus
2021-09-05 8:40 ` Lars Ingebrigtsen
2021-09-05 9:32 ` Eli Zaretskii
2021-09-06 8:19 ` Lars Ingebrigtsen
2021-09-01 6:24 ` bug#39111: [Re] " Thierry Volpiatto
2021-09-01 16:34 ` Michael Albinus
2021-09-02 4:21 ` Thierry Volpiatto
2021-09-02 6:49 ` Michael Albinus
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=87a6ky8owh.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=39111@debbugs.gnu.org \
--cc=michael.albinus@gmx.de \
--cc=p4j@j4d.net \
/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.