GNU bug report logs -
#25399
auth-source-user-and-password user argument
Previous Next
Reported by: Oscar Najera <najera.oscar <at> gmail.com>
Date: Sun, 8 Jan 2017 18:53:02 UTC
Severity: normal
Tags: fixed, patch
Fixed in version 26.1
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25399 in the body.
You can then email your comments to 25399 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25399
; Package
emacs
.
(Sun, 08 Jan 2017 18:53:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Oscar Najera <najera.oscar <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 08 Jan 2017 18:53:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello,
I tried to use the auth-source-user-and-password function with the user
argument, but it always returns a list of nil. Looking at the code I see
that the argument is not used in the auth-source-search but that a fixed
string "yourusername" is used.
With this patch I obtain the correct behavior.
Thank you for your attention,
Best regards,
Oscar
---
lisp/auth-source.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/auth-source.el b/lisp/auth-source.el
index c26935fcc9..7402ab21d7 100644
--- a/lisp/auth-source.el
+++ b/lisp/auth-source.el
@@ -2129,7 +2129,7 @@ MODE can be \"login\" or \"password\"."
(if user
(auth-source-search
:host host
- :user "yourusername"
+ :user user
:max 1
:require '(:user :secret)
:create nil)
Changed bug title to 'auth-source-user-and-password user argument' from '[PATCH]'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 08 Jan 2017 18:57:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25399
; Package
emacs
.
(Wed, 01 Feb 2017 01:39:01 GMT)
Full text and
rfc822 format available.
Message #10 received at 25399 <at> debbugs.gnu.org (full text, mbox):
tags 25399 fixed
close 25399 26.1
quit
Oscar Najera <najera.oscar <at> gmail.com> writes:
> I tried to use the auth-source-user-and-password function with the user
> argument, but it always returns a list of nil. Looking at the code I see
> that the argument is not used in the auth-source-search but that a fixed
> string "yourusername" is used.
This was fixed in [1: 52515f1].
1: 2017-01-31 14:13:10 -0500 52515f1133f2b87c573524d83c86b08e70ce1c30
auth-source-user-and-password: add forgotten user parameter
Added tag(s) fixed.
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Wed, 01 Feb 2017 01:39:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 26.1, send any further explanations to
25399 <at> debbugs.gnu.org and Oscar Najera <najera.oscar <at> gmail.com>
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Wed, 01 Feb 2017 01:39:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25399
; Package
emacs
.
(Wed, 01 Feb 2017 15:28:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 25399-done <at> debbugs.gnu.org (full text, mbox):
On Tue, 31 Jan 2017 20:39:10 -0500 npostavs <at> users.sourceforge.net wrote:
n> tags 25399 fixed
n> close 25399 26.1
n> quit
n> Oscar Najera <najera.oscar <at> gmail.com> writes:
>> I tried to use the auth-source-user-and-password function with the user
>> argument, but it always returns a list of nil. Looking at the code I see
>> that the argument is not used in the auth-source-search but that a fixed
>> string "yourusername" is used.
n> This was fixed in [1: 52515f1].
n> 1: 2017-01-31 14:13:10 -0500 52515f1133f2b87c573524d83c86b08e70ce1c30
n> auth-source-user-and-password: add forgotten user parameter
Oh, thanks! I had missed this bug report because it had no subject line.
Ted
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 02 Mar 2017 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 112 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.