Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: ding@gnus.org
Subject: Re: auth-sources asking for password 2 or 3 times
Date: Wed, 23 Feb 2011 08:58:13 -0600	[thread overview]
Message-ID: <87sjveol16.fsf@lifelogs.com> (raw)
In-Reply-To: <87pqqjkkdm.fsf@broken.deisui.org>

On Wed, 23 Feb 2011 21:25:57 +0900 Daiki Ueno <ueno@unixuser.org> wrote: 

DU> Do you mean it is not feasible to change the format anymore?  Though I'm
DU> not familiar with the history of the netrc format, I was thinking of the
DU> following extension introducing a new keyword "credential", which takes
DU> an ID associated with a password along with hidden attributes:

DU> $ cat ~/.authinfo # plain text
DU> machine example.org credential my-home-imap port imap

DU> $ gpg < ~/.secrets.org.gpg
DU> |--------------+----------+------------|
DU> | id           | password | attributes |
DU> |--------------+----------+------------|
DU> | my-home-imap | PaSSwoRd | user=foo   |
DU> |--------------+----------+------------|

DU> If an entry in ~/.authinfo has neither "login", "password", nor
DU> "credential", Gnus could consider the entry password-less and would not
DU> try to decrypt ~/.secrets.org.gpg.

DU> I think there will be no compatibility issue, except the netrc format
DU> extension.  If a user want to try this new feature, he could just
DU> customize auth-sources so that it points to ~/.authinfo instead of
DU> ~/.authinfo.gpg.

Yes, this could certainly be workable.  Could the line be:

machine example.org port imap credential my-home-imap credential-file "~/.secrets.org.gpg"

so that a) the netrc file can hold many such pointers, and b) we don't
have to change the file name spec to "fileA+fileB" as I proposed?

It's a little more verbose but IMO that's not a big deal in a small file
like netrc.  It's also backwards compatible so the users don't have to
change their existing auth-sources or their authinfo/netrc files.

Ted




  reply	other threads:[~2011-02-23 14:58 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-20 18:19 Sivaram Neelakantan
2011-02-21  1:27 ` Lars Ingebrigtsen
2011-02-21  1:35   ` Lars Ingebrigtsen
2011-02-22 22:03     ` Ted Zlatanov
2011-02-23  2:14       ` Daiki Ueno
2011-02-23  2:36         ` Ted Zlatanov
2011-02-23  7:20           ` Daiki Ueno
2011-02-23  8:40             ` Lars Ingebrigtsen
2011-02-23 12:25               ` Daiki Ueno
2011-02-23 14:58                 ` Ted Zlatanov [this message]
2011-02-25  4:35                   ` Lars Ingebrigtsen
2011-02-25  7:17                     ` Daiki Ueno
2011-02-25 14:40                       ` Michael Albinus
2011-02-26  0:49                         ` Daiki Ueno
2011-02-26  8:59                           ` Michael Albinus
2011-02-26  9:24                             ` Daiki Ueno
2011-02-25 14:43                       ` Ted Zlatanov
2011-02-23 14:54             ` Ted Zlatanov
2011-02-23  8:36       ` Lars Ingebrigtsen

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=87sjveol16.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --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).