GNU bug report logs - #22188
24.5; auth-source-search ignores netrc entries with port set

Previous Next

Package: emacs;

Reported by: Alexey Veretennikov <alexey.veretennikov <at> gmail.com>

Date: Wed, 16 Dec 2015 20:51:02 UTC

Severity: normal

Found in version 24.5

Done: Ted Zlatanov <tzz <at> lifelogs.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 22188 <at> debbugs.gnu.org, Alexey Veretennikov <alexey.veretennikov <at> gmail.com>
Subject: bug#22188: 24.5; auth-source-search ignores netrc entries with port set
Date: Thu, 24 Dec 2015 16:25:31 +0100
Ted Zlatanov <tzz <at> lifelogs.com> writes:

>    This will match any authentication port.  Simple, right?  But what if
> there’s a SMTP server on port 433 of that machine that needs a different
> password from the IMAP server?
>
>      machine YOURMACHINE login YOU password SMTPPASSWORD port 433
>      machine YOURMACHINE login YOU password GENERALPASSWORD
>
> I hope that helps. Closing this as done, but please let me know if the
> auth-source manual or docstrings need improvement.

The return values are hopefully sorted by specificity, right?  So the
first entry will be 433 if you specify :port "443" in the auth-source
call?  (And :max 1 will just return that entry...)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 9 years and 153 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.