]> git.eshelyaron.com Git - emacs.git/commit
Extract user from host when searching for entries in auth-source-pass
authorŁukasz Jędrzejewski <jedrzejewskiluk@gmail.com>
Sat, 4 Nov 2017 10:24:49 +0000 (12:24 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 4 Nov 2017 10:24:49 +0000 (12:24 +0200)
commite973c5f5f43ad4d6c98995eea269509b8a258781
tree37c59af9480865ab5dad813a54ff8f0979b3667d
parent5ea5b2536ef580fe4b17b6dbd62df90d51e73e5f
Extract user from host when searching for entries in auth-source-pass

* lisp/auth-source-pass.el (auth-source-pass--user): New function.
(auth-source-pass--find-match): Use it.  When the user is not
explicitly specified and no entry is found, extract the user from
the host and then search again.  (Bug#29045)
* test/lisp/auth-source-pass-tests.el
(auth-source-pass-find-match-matching-extracting-user-from-host):
Add a new test case.

Copyright-paperwork-exempt: yes
lisp/auth-source-pass.el
test/lisp/auth-source-pass-tests.el