aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsumi Yamaoka2009-09-09 10:07:19 +0000
committerKatsumi Yamaoka2009-09-09 10:07:19 +0000
commit38dc51ba9b5372a8035445fa3a230115def726bd (patch)
tree0ed9478665a2e5ccfd7705294d18a7e84afe33d2
parentcdce0b331faad4c64ae4b3015318db87499a1f92 (diff)
downloademacs-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/ChangeLog4
-rw-r--r--doc/misc/auth.texi60
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
152009-09-02 Teodor Zlatanov <tzz@lifelogs.com>
16
17 * auth.texi (Help for users): Corrected markup.
18
152009-09-02 Glenn Morris <rgm@gnu.org> 192009-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
70The auth-source library is a modern, extensible, enterprise-class 70The auth-source library is simply a way for Emacs and Gnus, among
71authentication library. It uses the latest design patterns, has 1800 71others, to find the answer to the old burning question ``I have a
72unit tests, and has been featured in 21 industry conference keynote 72server name and a port, what are my user name and password?''
73talks. It's future-proof, mathematically proven to be bug-free, and
74has 6 internal XML parsers just in case you ever need to eat up some
75memory.
76
77Just kidding. The auth-source library is simply a way for Emacs and
78Gnus, among others, to find the answer to the old burning question ``I
79have a server name and a port, what are my user name and password?''
80 73
81The auth-source library actually supports more than just the user name 74The 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
93machine mymachine login myloginname password mypassword port myport 86machine @var{mymachine} login @var{myloginname} password @var{mypassword} port @var{myport}
94@end example 87@end example
95 88
89The machine is the server (either a DNS name or an IP address).
90
96The port is optional. If it's missing, auth-source will assume any 91The port is optional. If it's missing, auth-source will assume any
97port is OK. Actually the port is a protocol name or a port number so 92port is OK. Actually the port is a protocol name or a port number so
98you can have separate entries for port 143 and for protocol ``imap'' 93you can have separate entries for port @var{143} and for protocol
99if 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
100need it. ``Netrc'' files are usually called @code{.authinfo} or 95you don't need it.
101@code{.netrc}; nowadays @code{.authinfo} seems to be more popular and 96
102the auth-source library encourages this confusion by making it the 97The login and password are simply your login credentials to the server.
103default, as you'll see later. 98
104 99``Netrc'' files are usually called @code{.authinfo} or @code{.netrc};
105If you have problems with the port, set @var{auth-source-debug} to t 100nowadays @code{.authinfo} seems to be more popular and the auth-source
106and see what port the library is checking in the @code{*Messages*} 101library encourages this confusion by making it the default, as you'll
107buffer. Ditto for any other problems, your first step is always to 102see later.
108see what's being checked. The second step, of course, is to write a 103
109blog entry about it and wait for the answer in the comments. 104If 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
111You can customize the variable @var{auth-sources}. The following may 106@code{*Messages*} buffer. Ditto for any other problems, your first
107step is always to see what's being checked. The second step, of
108course, is to write a blog entry about it and wait for the answer in
109the comments.
110
111You can customize the variable @code{auth-sources}. The following may
112be needed if you are using an older version of Emacs or if the 112be needed if you are using an older version of Emacs or if the
113auth-source library is not loaded for some other reason. 113auth-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
122The @var{auth-sources} variable tells the auth-source library where 122The @code{auth-sources} variable tells the auth-source library where
123your netrc files live for a particular host and protocol. While you 123your netrc files live for a particular host and protocol. While you
124can get fancy, the default and simplest configuration is: 124can 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
132want to move your netrc file, it will just work if you have that 132want to move your netrc file, it will just work if you have that
133file. You may not, though, so make sure it exists. 133file. You may not, though, so make sure it exists.
134 134
135By adding multiple entries to @var{auth-sources} with a particular 135By adding multiple entries to @code{auth-sources} with a particular
136host or protocol, you can have specific netrc files for that host or 136host or protocol, you can have specific netrc files for that host or
137protocol. Usually this is unnecessary but may make sense if you have 137protocol. Usually this is unnecessary but may make sense if you have
138shared netrc files or some other unusual setup (90% of Emacs users 138shared 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
143If you don't customize @var{auth-sources}, you'll have to live with 143If you don't customize @code{auth-sources}, you'll have to live with
144the defaults: any host and any port are looked up in the netrc 144the defaults: any host and any port are looked up in the netrc
145file @code{~/.authinfo.gpg}. This is an encrypted file if and only if 145file @code{~/.authinfo.gpg}. This is an encrypted file if and only if
146you set up EPA, which is strongly recommended. 146you 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
200Retrieve appropriate authentication tokens, determined by @var{mode}, 200Retrieve appropriate authentication tokens, determined by @var{mode},
201for host @var{host} and @var{port}. If @var{auth-source-debug} is t, 201for host @var{host} and @var{port}. If @code{auth-source-debug} is t,
202debugging messages will be printed. Set @var{auth-source-debug} to a 202debugging messages will be printed. Set @code{auth-source-debug} to a
203function to use that function for logging. The parameters passed will 203function to use that function for logging. The parameters passed will
204be the same that the @code{message} function takes, that is, a string 204be the same that the @code{message} function takes, that is, a string
205formatting spec and optional parameters. 205formatting spec and optional parameters.