diff options
| author | Katsumi Yamaoka | 2009-09-09 10:07:19 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2009-09-09 10:07:19 +0000 |
| commit | 38dc51ba9b5372a8035445fa3a230115def726bd (patch) | |
| tree | 0ed9478665a2e5ccfd7705294d18a7e84afe33d2 | |
| parent | cdce0b331faad4c64ae4b3015318db87499a1f92 (diff) | |
| download | emacs-38dc51ba9b5372a8035445fa3a230115def726bd.tar.gz emacs-38dc51ba9b5372a8035445fa3a230115def726bd.zip | |
2009-09-02 Teodor Zlatanov <tzz@lifelogs.com>
* auth.texi (Help for users): Corrected markup.
| -rw-r--r-- | doc/misc/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/misc/auth.texi | 60 |
2 files changed, 34 insertions, 30 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index f70c8751e47..450788c5c1e 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -12,6 +12,10 @@ | |||
| 12 | (Feedback): Document the new bug report command. | 12 | (Feedback): Document the new bug report command. |
| 13 | (Structure editing): Added an index entry for the sorting of subtrees. | 13 | (Structure editing): Added an index entry for the sorting of subtrees. |
| 14 | 14 | ||
| 15 | 2009-09-02 Teodor Zlatanov <tzz@lifelogs.com> | ||
| 16 | |||
| 17 | * auth.texi (Help for users): Corrected markup. | ||
| 18 | |||
| 15 | 2009-09-02 Glenn Morris <rgm@gnu.org> | 19 | 2009-09-02 Glenn Morris <rgm@gnu.org> |
| 16 | 20 | ||
| 17 | * emacs-mime.texi (time-date): Mention float-time. | 21 | * emacs-mime.texi (time-date): Mention float-time. |
diff --git a/doc/misc/auth.texi b/doc/misc/auth.texi index 0cdb0df21d9..fc69d0241a9 100644 --- a/doc/misc/auth.texi +++ b/doc/misc/auth.texi | |||
| @@ -67,16 +67,9 @@ It is a way for multiple applications to share a single configuration | |||
| 67 | @node Overview | 67 | @node Overview |
| 68 | @chapter Overview | 68 | @chapter Overview |
| 69 | 69 | ||
| 70 | The auth-source library is a modern, extensible, enterprise-class | 70 | The auth-source library is simply a way for Emacs and Gnus, among |
| 71 | authentication library. It uses the latest design patterns, has 1800 | 71 | others, to find the answer to the old burning question ``I have a |
| 72 | unit tests, and has been featured in 21 industry conference keynote | 72 | server name and a port, what are my user name and password?'' |
| 73 | talks. It's future-proof, mathematically proven to be bug-free, and | ||
| 74 | has 6 internal XML parsers just in case you ever need to eat up some | ||
| 75 | memory. | ||
| 76 | |||
| 77 | Just kidding. The auth-source library is simply a way for Emacs and | ||
| 78 | Gnus, among others, to find the answer to the old burning question ``I | ||
| 79 | have a server name and a port, what are my user name and password?'' | ||
| 80 | 73 | ||
| 81 | The auth-source library actually supports more than just the user name | 74 | The auth-source library actually supports more than just the user name |
| 82 | (known as the login) or the password, but only those two are in use | 75 | (known as the login) or the password, but only those two are in use |
| @@ -90,25 +83,32 @@ see later in this document. | |||
| 90 | 83 | ||
| 91 | ``Netrc'' files are a de facto standard. They look like this: | 84 | ``Netrc'' files are a de facto standard. They look like this: |
| 92 | @example | 85 | @example |
| 93 | machine mymachine login myloginname password mypassword port myport | 86 | machine @var{mymachine} login @var{myloginname} password @var{mypassword} port @var{myport} |
| 94 | @end example | 87 | @end example |
| 95 | 88 | ||
| 89 | The machine is the server (either a DNS name or an IP address). | ||
| 90 | |||
| 96 | The port is optional. If it's missing, auth-source will assume any | 91 | The port is optional. If it's missing, auth-source will assume any |
| 97 | port is OK. Actually the port is a protocol name or a port number so | 92 | port is OK. Actually the port is a protocol name or a port number so |
| 98 | you can have separate entries for port 143 and for protocol ``imap'' | 93 | you can have separate entries for port @var{143} and for protocol |
| 99 | if you fancy that. Anyway, you can just omit the port if you don't | 94 | @var{imap} if you fancy that. Anyway, you can just omit the port if |
| 100 | need it. ``Netrc'' files are usually called @code{.authinfo} or | 95 | you don't need it. |
| 101 | @code{.netrc}; nowadays @code{.authinfo} seems to be more popular and | 96 | |
| 102 | the auth-source library encourages this confusion by making it the | 97 | The login and password are simply your login credentials to the server. |
| 103 | default, as you'll see later. | 98 | |
| 104 | 99 | ``Netrc'' files are usually called @code{.authinfo} or @code{.netrc}; | |
| 105 | If you have problems with the port, set @var{auth-source-debug} to t | 100 | nowadays @code{.authinfo} seems to be more popular and the auth-source |
| 106 | and see what port the library is checking in the @code{*Messages*} | 101 | library encourages this confusion by making it the default, as you'll |
| 107 | buffer. Ditto for any other problems, your first step is always to | 102 | see later. |
| 108 | see what's being checked. The second step, of course, is to write a | 103 | |
| 109 | blog entry about it and wait for the answer in the comments. | 104 | If you have problems with the port, set @code{auth-source-debug} to |
| 110 | 105 | @code{t} and see what port the library is checking in the | |
| 111 | You can customize the variable @var{auth-sources}. The following may | 106 | @code{*Messages*} buffer. Ditto for any other problems, your first |
| 107 | step is always to see what's being checked. The second step, of | ||
| 108 | course, is to write a blog entry about it and wait for the answer in | ||
| 109 | the comments. | ||
| 110 | |||
| 111 | You can customize the variable @code{auth-sources}. The following may | ||
| 112 | be needed if you are using an older version of Emacs or if the | 112 | be needed if you are using an older version of Emacs or if the |
| 113 | auth-source library is not loaded for some other reason. | 113 | auth-source library is not loaded for some other reason. |
| 114 | 114 | ||
| @@ -119,7 +119,7 @@ auth-source library is not loaded for some other reason. | |||
| 119 | 119 | ||
| 120 | @defvar auth-sources | 120 | @defvar auth-sources |
| 121 | 121 | ||
| 122 | The @var{auth-sources} variable tells the auth-source library where | 122 | The @code{auth-sources} variable tells the auth-source library where |
| 123 | your netrc files live for a particular host and protocol. While you | 123 | your netrc files live for a particular host and protocol. While you |
| 124 | can get fancy, the default and simplest configuration is: | 124 | can get fancy, the default and simplest configuration is: |
| 125 | 125 | ||
| @@ -132,7 +132,7 @@ Sweet simplicity. In fact, this is already the default, so unless you | |||
| 132 | want to move your netrc file, it will just work if you have that | 132 | want to move your netrc file, it will just work if you have that |
| 133 | file. You may not, though, so make sure it exists. | 133 | file. You may not, though, so make sure it exists. |
| 134 | 134 | ||
| 135 | By adding multiple entries to @var{auth-sources} with a particular | 135 | By adding multiple entries to @code{auth-sources} with a particular |
| 136 | host or protocol, you can have specific netrc files for that host or | 136 | host or protocol, you can have specific netrc files for that host or |
| 137 | protocol. Usually this is unnecessary but may make sense if you have | 137 | protocol. Usually this is unnecessary but may make sense if you have |
| 138 | shared netrc files or some other unusual setup (90% of Emacs users | 138 | shared netrc files or some other unusual setup (90% of Emacs users |
| @@ -140,7 +140,7 @@ have unusual setups and the remaining 10% are @emph{really} unusual). | |||
| 140 | 140 | ||
| 141 | @end defvar | 141 | @end defvar |
| 142 | 142 | ||
| 143 | If you don't customize @var{auth-sources}, you'll have to live with | 143 | If you don't customize @code{auth-sources}, you'll have to live with |
| 144 | the defaults: any host and any port are looked up in the netrc | 144 | the defaults: any host and any port are looked up in the netrc |
| 145 | file @code{~/.authinfo.gpg}. This is an encrypted file if and only if | 145 | file @code{~/.authinfo.gpg}. This is an encrypted file if and only if |
| 146 | you set up EPA, which is strongly recommended. | 146 | you set up EPA, which is strongly recommended. |
| @@ -198,8 +198,8 @@ The auth-source library only has one function for external use. | |||
| 198 | @defun auth-source-user-or-password mode host port | 198 | @defun auth-source-user-or-password mode host port |
| 199 | 199 | ||
| 200 | Retrieve appropriate authentication tokens, determined by @var{mode}, | 200 | Retrieve appropriate authentication tokens, determined by @var{mode}, |
| 201 | for host @var{host} and @var{port}. If @var{auth-source-debug} is t, | 201 | for host @var{host} and @var{port}. If @code{auth-source-debug} is t, |
| 202 | debugging messages will be printed. Set @var{auth-source-debug} to a | 202 | debugging messages will be printed. Set @code{auth-source-debug} to a |
| 203 | function to use that function for logging. The parameters passed will | 203 | function to use that function for logging. The parameters passed will |
| 204 | be the same that the @code{message} function takes, that is, a string | 204 | be the same that the @code{message} function takes, that is, a string |
| 205 | formatting spec and optional parameters. | 205 | formatting spec and optional parameters. |