diff options
| author | Lars Ingebrigtsen | 2021-01-10 15:32:57 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-01-10 15:32:57 +0100 |
| commit | 9717ba930975d772412c65b0e2dbb9258cf502bd (patch) | |
| tree | 2db98658dca035411ed5173143efa0668109005d | |
| parent | e186af261a4ed0fbcf8cbb35374b69582f42f25b (diff) | |
| download | emacs-9717ba930975d772412c65b0e2dbb9258cf502bd.tar.gz emacs-9717ba930975d772412c65b0e2dbb9258cf502bd.zip | |
Specify precedence in .authinfo files
* doc/misc/auth.texi (Help for users): Mention placing more
specific entries first (bug#45711).
| -rw-r--r-- | doc/misc/auth.texi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/misc/auth.texi b/doc/misc/auth.texi index d810f15c802..034004d1df4 100644 --- a/doc/misc/auth.texi +++ b/doc/misc/auth.texi | |||
| @@ -107,6 +107,18 @@ The @code{user} is the user name. It's known as @var{:user} in | |||
| 107 | @code{auth-source-search} queries. You can also use @code{login} and | 107 | @code{auth-source-search} queries. You can also use @code{login} and |
| 108 | @code{account}. | 108 | @code{account}. |
| 109 | 109 | ||
| 110 | Matching entries are usually used in the order they appear, so placing | ||
| 111 | the most specific entries first in the file is a good idea. For | ||
| 112 | instance: | ||
| 113 | |||
| 114 | @example | ||
| 115 | machine example.com login foobar password geheimnis port smtp | ||
| 116 | machine example.com login foobar password hemmelig | ||
| 117 | @end example | ||
| 118 | |||
| 119 | Here we're using one password for the @code{smtp} service, and a | ||
| 120 | different one for all the other services. | ||
| 121 | |||
| 110 | You can also use this file to specify client certificates to use when | 122 | You can also use this file to specify client certificates to use when |
| 111 | setting up TLS connections. The format is: | 123 | setting up TLS connections. The format is: |
| 112 | 124 | ||