]> granicus.if.org Git - apache/blob - docs/manual/mod/mod_auth_anon.xml
Update the stylesheet reference to the new language-specific version.
[apache] / docs / manual / mod / mod_auth_anon.xml
1 <?xml version="1.0"?>
2 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
3 <?xml-stylesheet type="text/xsl" href="../style/manual.en.xsl"?>
4 <modulesynopsis>
5
6 <name>mod_auth_anon</name>
7 <description>Allows "anonymous" user access to authenticated
8     areas</description>
9 <status>Extension</status>
10 <sourcefile>mod_auth_anon.c</sourcefile>
11 <identifier>auth_anon_module</identifier>
12
13 <summary>
14     <p>This module does access control in a manner similar to
15     anonymous-ftp sites; <em>i.e.</em> have a 'magic' user id
16     'anonymous' and the email address as a password. These email
17     addresses can be logged.</p>
18
19     <p>Combined with other (database) access control methods, this
20     allows for effective user tracking and customization according
21     to a user profile while still keeping the site open for
22     'unregistered' users. One advantage of using Auth-based user
23     tracking is that, unlike magic-cookies and funny URL
24     pre/postfixes, it is completely browser independent and it
25     allows users to share URLs.</p>
26 </summary>
27
28 <section><title>Example</title>
29
30     <p>The example below (when combined with the Auth directives of a
31     htpasswd-file based (or GDM, mSQL <em>etc.</em>) base access
32     control system allows users in as 'guests' with the following
33     properties:</p>
34
35     <ul>
36       <li>It insists that the user enters a userId.
37       (<code>Anonymous_NoUserId</code>)</li>
38
39       <li>It insists that the user enters a password.
40       (<code>Anonymous_MustGiveEmail</code>)</li>
41
42       <li>The password entered must be a valid email address, ie.
43       contain at least one '@' and a '.'.
44       (<code>Anonymous_VerifyEmail</code>)</li>
45
46       <li>The userID must be one of <code>anonymous guest www test
47       welcome</code> and comparison is <strong>not</strong> case
48       sensitive.</li>
49
50       <li>And the Email addresses entered in the passwd field are
51       logged to the error log file
52       (<code>Anonymous_LogEmail</code>)</li>
53     </ul>
54
55     <p>Excerpt of httpd.conf:</p>
56
57 <example>
58        Anonymous_NoUserId off<br />
59        Anonymous_MustGiveEmail on<br />
60        Anonymous_VerifyEmail on<br />
61        Anonymous_LogEmail on<br />
62        Anonymous anonymous guest www test welcome<br />
63 <br />
64       AuthName "Use 'anonymous' &amp; Email address for
65       guest entry"<br />
66       AuthType basic<br />
67 <br />
68        # An
69       AuthUserFile/AuthDBUserFile/AuthDBMUserFile<br />
70        # directive must be specified, or use<br />
71        # Anonymous_Authoritative for public access.<br />
72        # In the .htaccess for the public directory, add:<br />
73        &lt;Files *&gt;<br />
74        Order Deny,Allow<br />
75        Allow from all<br />
76 <br />
77        Require valid-user<br />
78        &lt;/Files&gt;<br />
79 </example>
80 </section>
81
82 <directivesynopsis>
83 <name>Anonymous</name>
84 <description>Specifies userIDs that areallowed access without
85 password verification</description>
86 <syntax>Anonymous <em>user</em> [<em>user</em>] ...</syntax>
87 <contextlist><context>directory</context><context>.htaccess</context>
88 </contextlist>
89 <override>AuthConfig</override>
90
91 <usage>
92     <p>A list of one or more 'magic' userIDs which are allowed
93     access without password verification. The userIDs are space
94     separated. It is possible to use the ' and " quotes to allow a
95     space in a userID as well as the \ escape character.</p>
96
97     <p>Please note that the comparison is
98     <strong>case-IN-sensitive</strong>.<br />
99      I strongly suggest that the magic username
100     '<code>anonymous</code>' is always one of the allowed
101     userIDs.</p>
102
103     <p>Example:</p>
104 <example>Anonymous anonymous "Not Registered" 'I don\'t know'</example>
105
106     <p>This would allow the user to enter without password
107     verification by using the userId's 'anonymous',
108     'AnonyMous','Not Registered' and 'I Don't Know'.</p>
109 </usage>
110 </directivesynopsis>
111
112 <directivesynopsis>
113 <name>Anonymous_Authoritative</name>
114 <description>Configures if authorization will fall-through
115 to other methods</description>
116 <syntax>Anonymous_Authoritative on|off</syntax>
117 <default>Anonymous_Authoritative off</default>
118 <contextlist><context>directory</context><context>.htaccess</context>
119 </contextlist>
120 <override>AuthConfig</override>
121
122 <usage>
123     <p>When set 'on', there is no fall-through to other authorization
124     methods. So if a userID does not match the values specified in the
125     <directive module="mod_auth_anon">Anonymous</directive> directive,
126     access is denied.</p>
127
128     <p>Be sure you know what you are doing when you decide to
129     switch it on. And remember that it is the linking order of the
130     modules (in the Configuration / Make file) which details the
131     order in which the Authorization modules are queried.</p>
132 </usage>
133 </directivesynopsis>
134
135 <directivesynopsis>
136 <name>Anonymous_LogEmail</name>
137 <description>Sets whether the password entered will be logged in the
138 error log</description>
139 <syntax>Anonymous_LogEmail on|off</syntax>
140 <default>Anonymous_LogEmail on</default>
141 <contextlist><context>directory</context><context>.htaccess</context>
142 </contextlist>
143 <override>AuthConfig</override>
144
145 <usage>
146     <p>When set <code>on</code>, the default, the 'password' entered
147     (which hopefully contains a sensible email address) is logged in
148     the error log.</p>
149 </usage>
150 </directivesynopsis>
151
152 <directivesynopsis>
153 <name>Anonymous_MustGiveEmail</name>
154 <description>Specifies whether blank passwords are allowed</description>
155 <syntax>Anonymous_MustGiveEmail on|off</syntax>
156 <default>Anonymous_MustGiveEmail on</default>
157 <contextlist><context>directory</context><context>.htaccess</context>
158 </contextlist>
159 <override>AuthConfig</override>
160
161 <usage>
162     <p>Specifies whether the user must specify an email address as
163     the password. This prohibits blank passwords.</p>
164 </usage>
165 </directivesynopsis>
166
167 <directivesynopsis>
168 <name>Anonymous_NoUserID</name>
169 <description>Sets whether the userID field may be empty</description>
170 <syntax>Anonymous_NoUserID on|off</syntax>
171 <default>Anonymous_NoUserID off</default>
172 <contextlist><context>directory</context><context>.htaccess</context>
173 </contextlist>
174 <override>AuthConfig</override>
175
176 <usage>
177     <p>When set <code>on</code>, users can leave the userID (and
178     perhaps the password field) empty. This can be very convenient for
179     MS-Explorer users who can just hit return or click directly on the
180     OK button; which seems a natural reaction.</p>
181 </usage>
182 </directivesynopsis>
183
184 <directivesynopsis>
185 <name>Anonymous_VerifyEmail</name>
186 <description>Sets whether to check the password field for a correctly
187 formatted email address</description>
188 <syntax>Anonymous_VerifyEmail on|off</syntax>
189 <default>Anonymous_VerifyEmail off</default>
190 <contextlist><context>directory</context><context>.htaccess</context>
191 </contextlist>
192 <override>AuthConfig</override>
193
194 <usage>
195     <p>When set <code>on</code> the 'password' entered is checked for
196     at least one '@' and a '.' to encourage users to enter valid email
197     addresses (see the above <directive
198     module="mod_auth_anon">Auth_LogEmail</directive>).</p>
199 </usage>
200 </directivesynopsis>
201
202 </modulesynopsis>