]> granicus.if.org Git - apache/blob - docs/manual/mod/mod_authn_anon.html.en
update transformation
[apache] / docs / manual / mod / mod_authn_anon.html.en
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
4         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5               This file is generated from xml source: DO NOT EDIT
6         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
7       -->
8 <title>mod_authn_anon - Apache HTTP Server</title>
9 <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
10 <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
11 <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
12 <link href="../images/favicon.ico" rel="shortcut icon" /></head>
13 <body>
14 <div id="page-header">
15 <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p>
16 <p class="apache">Apache HTTP Server Version 2.1</p>
17 <img alt="" src="../images/feather.gif" /></div>
18 <div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
19 <div id="path">
20 <a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs-project/">Documentation</a> &gt; <a href="../">Version 2.1</a> &gt; <a href="./">Modules</a></div>
21 <div id="page-content">
22 <div id="preamble"><h1>Apache Module mod_authn_anon</h1>
23 <div class="toplang">
24 <p><span>Available Languages: </span><a href="../en/mod/mod_authn_anon.html" title="English">&nbsp;en&nbsp;</a></p>
25 </div>
26 <table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>Allows "anonymous" user access to authenticated
27     areas</td></tr>
28 <tr><th><a href="module-dict.html#Status">Status:</a></th><td>Extension</td></tr>
29 <tr><th><a href="module-dict.html#ModuleIdentifier">Module Identifier:</a></th><td>authn_anon_module</td></tr>
30 <tr><th><a href="module-dict.html#SourceFile">Source File:</a></th><td>mod_authn_anon.c</td></tr>
31 <tr><th><a href="module-dict.html#Compatibility">Compatibility:</a></th><td>Available in Apache 2.1 and later</td></tr></table>
32 <h3>Summary</h3>
33
34     <p>This module provides authentication front-ends such as
35     <code class="module"><a href="../mod/mod_auth_basic.html">mod_auth_basic</a></code> to authenticate users similar
36     to anonymous-ftp sites, <em>i.e.</em> have a 'magic' user id
37     'anonymous' and the email address as a password. These email
38     addresses can be logged.</p>
39
40     <p>Combined with other (database) access control methods, this
41     allows for effective user tracking and customization according
42     to a user profile while still keeping the site open for
43     'unregistered' users. One advantage of using Auth-based user
44     tracking is that, unlike magic-cookies and funny URL
45     pre/postfixes, it is completely browser independent and it
46     allows users to share URLs.</p>
47
48     <p>When using <code class="module"><a href="../mod/mod_auth_basic.html">mod_auth_basic</a></code>, this module is invoked
49     via the <code class="directive"><a href="../mod/mod_auth_basic.html#authbasicprovider">AuthBasicProvider</a></code>
50     directive with the <code>anon</code> value.</p>
51 </div>
52 <div id="quickview"><h3 class="directives">Directives</h3>
53 <ul id="toc">
54 <li><img alt="" src="../images/down.gif" /> <a href="#anonymous">Anonymous</a></li>
55 <li><img alt="" src="../images/down.gif" /> <a href="#anonymous_logemail">Anonymous_LogEmail</a></li>
56 <li><img alt="" src="../images/down.gif" /> <a href="#anonymous_mustgiveemail">Anonymous_MustGiveEmail</a></li>
57 <li><img alt="" src="../images/down.gif" /> <a href="#anonymous_nouserid">Anonymous_NoUserID</a></li>
58 <li><img alt="" src="../images/down.gif" /> <a href="#anonymous_verifyemail">Anonymous_VerifyEmail</a></li>
59 </ul>
60 <h3>Topics</h3>
61 <ul id="topics">
62 <li><img alt="" src="../images/down.gif" /> <a href="#example">Example</a></li>
63 </ul></div>
64 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
65 <div class="section">
66 <h2><a name="example" id="example">Example</a></h2>
67     <p>The example below is combined with "normal" htpasswd-file based
68     authentication and allows users in additionally as 'guests' with the
69     following properties:</p>
70
71     <ul>
72       <li>It insists that the user enters a userId.
73       (<code class="directive"><a href="#anonymous_nouserid">Anonymous_NoUserId</a></code>)</li>
74
75       <li>It insists that the user enters a password.
76       (<code class="directive"><a href="#anonymous_mustgiveemail">Anonymous_MustGiveEmail</a></code>)</li>
77
78       <li>The password entered must be a valid email address, <em>i.e.</em>
79       contain at least one '@' and a '.'.
80       (<code class="directive"><a href="#anonymous_verifyemail">Anonymous_VerifyEmail</a></code>)</li>
81
82       <li>The userID must be one of <code>anonymous guest www test
83       welcome</code> and comparison is <strong>not</strong> case
84       sensitive.</li>
85
86       <li>And the Email addresses entered in the passwd field are
87       logged to the error log file
88       (<code class="directive"><a href="#anonymous_logemail">Anonymous_LogEmail</a></code>)</li>
89     </ul>
90
91     <div class="example"><h3>Example</h3><p><code>
92       &lt;Directory /foo&gt;
93       <span class="indent">
94         AuthName "Use 'anonymous' &amp; Email address for guest entry"<br />
95         AuthType Basic<br />
96         AuthBasicProvider file anon<br />
97         AuthUserFile /path/to/your/.htpasswd<br />
98         <br />
99         Anonymous_NoUserId off<br />
100         Anonymous_MustGiveEmail on<br />
101         Anonymous_VerifyEmail on<br />
102         Anonymous_LogEmail on<br />
103         Anonymous anonymous guest www test welcome<br />
104         <br />
105         Order Deny,Allow<br />
106         Allow from all<br />
107         <br />
108         Require valid-user<br />
109       </span>
110       &lt;/Directory&gt;
111     </code></p></div>
112 </div>
113 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
114 <div class="directive-section"><h2><a name="Anonymous" id="Anonymous">Anonymous</a> <a name="anonymous" id="anonymous">Directive</a></h2>
115 <table class="directive">
116 <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Specifies userIDs that areallowed access without
117 password verification</td></tr>
118 <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>Anonymous <var>user</var> [<var>user</var>] ...</code></td></tr>
119 <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>directory, .htaccess</td></tr>
120 <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>AuthConfig</td></tr>
121 <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Extension</td></tr>
122 <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_authn_anon</td></tr>
123 </table>
124     <p>A list of one or more 'magic' userIDs which are allowed
125     access without password verification. The userIDs are space
126     separated. It is possible to use the ' and " quotes to allow a
127     space in a userID as well as the \ escape character.</p>
128
129     <p>Please note that the comparison is
130     <strong>case-IN-sensitive</strong>.<br />
131     It's strongly recommended that the magic username
132     '<code>anonymous</code>' is always one of the allowed
133     userIDs.</p>
134
135     <div class="example"><h3>Example:</h3><p><code>
136       Anonymous anonymous "Not Registered" "I don't know"
137     </code></p></div>
138
139     <p>This would allow the user to enter without password
140     verification by using the userIDs "anonymous",
141     "AnonyMous", "Not Registered" and "I Don't Know".</p>
142
143 </div>
144 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
145 <div class="directive-section"><h2><a name="Anonymous_LogEmail" id="Anonymous_LogEmail">Anonymous_LogEmail</a> <a name="anonymous_logemail" id="anonymous_logemail">Directive</a></h2>
146 <table class="directive">
147 <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Sets whether the password entered will be logged in the
148 error log</td></tr>
149 <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>Anonymous_LogEmail On|Off</code></td></tr>
150 <tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>Anonymous_LogEmail On</code></td></tr>
151 <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>directory, .htaccess</td></tr>
152 <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>AuthConfig</td></tr>
153 <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Extension</td></tr>
154 <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_authn_anon</td></tr>
155 </table>
156     <p>When set <code>On</code>, the default, the 'password' entered
157     (which hopefully contains a sensible email address) is logged in
158     the error log.</p>
159
160 </div>
161 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
162 <div class="directive-section"><h2><a name="Anonymous_MustGiveEmail" id="Anonymous_MustGiveEmail">Anonymous_MustGiveEmail</a> <a name="anonymous_mustgiveemail" id="anonymous_mustgiveemail">Directive</a></h2>
163 <table class="directive">
164 <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Specifies whether blank passwords are allowed</td></tr>
165 <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>Anonymous_MustGiveEmail On|Off</code></td></tr>
166 <tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>Anonymous_MustGiveEmail On</code></td></tr>
167 <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>directory, .htaccess</td></tr>
168 <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>AuthConfig</td></tr>
169 <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Extension</td></tr>
170 <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_authn_anon</td></tr>
171 </table>
172     <p>Specifies whether the user must specify an email address as
173     the password. This prohibits blank passwords.</p>
174
175 </div>
176 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
177 <div class="directive-section"><h2><a name="Anonymous_NoUserID" id="Anonymous_NoUserID">Anonymous_NoUserID</a> <a name="anonymous_nouserid" id="anonymous_nouserid">Directive</a></h2>
178 <table class="directive">
179 <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Sets whether the userID field may be empty</td></tr>
180 <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>Anonymous_NoUserID On|Off</code></td></tr>
181 <tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>Anonymous_NoUserID Off</code></td></tr>
182 <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>directory, .htaccess</td></tr>
183 <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>AuthConfig</td></tr>
184 <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Extension</td></tr>
185 <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_authn_anon</td></tr>
186 </table>
187     <p>When set <code>On</code>, users can leave the userID (and
188     perhaps the password field) empty. This can be very convenient for
189     MS-Explorer users who can just hit return or click directly on the
190     OK button; which seems a natural reaction.</p>
191
192 </div>
193 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
194 <div class="directive-section"><h2><a name="Anonymous_VerifyEmail" id="Anonymous_VerifyEmail">Anonymous_VerifyEmail</a> <a name="anonymous_verifyemail" id="anonymous_verifyemail">Directive</a></h2>
195 <table class="directive">
196 <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Sets whether to check the password field for a correctly
197 formatted email address</td></tr>
198 <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>Anonymous_VerifyEmail On|Off</code></td></tr>
199 <tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>Anonymous_VerifyEmail Off</code></td></tr>
200 <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>directory, .htaccess</td></tr>
201 <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>AuthConfig</td></tr>
202 <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Extension</td></tr>
203 <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_authn_anon</td></tr>
204 </table>
205     <p>When set <code>On</code> the 'password' entered is checked for
206     at least one '@' and a '.' to encourage users to enter valid email
207     addresses (see the above <code class="directive"><a href="#anonymous_logemail">Anonymous_LogEmail</a></code>).</p>
208
209 </div>
210 </div>
211 <div class="bottomlang">
212 <p><span>Available Languages: </span><a href="../en/mod/mod_authn_anon.html" title="English">&nbsp;en&nbsp;</a></p>
213 </div><div id="footer">
214 <p class="apache">Maintained by the <a href="http://httpd.apache.org/docs-project/">Apache HTTP Server Documentation Project</a></p>
215 <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div>
216 </body></html>