mod_auth.html revision 19571734da8573ce05afdaf0d33e67b41400215d
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington BGCOLOR="#FFFFFF"
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington TEXT="#000000"
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington LINK="#0000FF"
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington VLINK="#000080"
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington ALINK="#FF0000"
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington<!--#include virtual="header.html" -->
2dd75eff92ef66e22cca286b6f4fe5a9c929af9dPhill Cunnington<P>This module provides for user authentication using text files.
2dd75eff92ef66e22cca286b6f4fe5a9c929af9dPhill CunningtonHREF="module-dict.html#SourceFile"
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington><STRONG>Source File:</STRONG></A> mod_auth.c
a093731116a8c24d49b903df7602cf586e499b45Phill CunningtonHREF="module-dict.html#ModuleIdentifier"
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington><STRONG>Module Identifier:</STRONG></A> auth_module
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington<P>This module allows the use of HTTP Basic Authentication to restrict
a093731116a8c24d49b903df7602cf586e499b45Phill Cunningtonaccess by looking up users in plain text password and group files.
a093731116a8c24d49b903df7602cf586e499b45Phill CunningtonSimilar functionality and greater scalability is provided by <A
a093731116a8c24d49b903df7602cf586e499b45Phill CunningtonHREF="mod_auth_dbm.html">mod_auth_dbm</A> and <A
a093731116a8c24d49b903df7602cf586e499b45Phill CunningtonHREF="mod_auth_db.html">mod_auth_db</A>. HTTP Digest Authentication
5db031755ab3a8762e266f96f5d74832548d330bPhill Cunningtonis provided by <A HREF="mod_auth_digest.html">mod_auth_digest</A>.
5db031755ab3a8762e266f96f5d74832548d330bPhill Cunnington<LI><A HREF="#authgroupfile">AuthGroupFile</A>
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington<LI><A HREF="#authuserfile">AuthUserFile</A>
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington<LI><A HREF="#authauthoritative">AuthAuthoritative</A>
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington<P>See also: <A HREF="core.html#require">require</A>
a093731116a8c24d49b903df7602cf586e499b45Phill Cunningtonand <A HREF="core.html#satisfy">satisfy</A>.</P>
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington<H2><A NAME="authgroupfile">AuthGroupFile</A> directive</H2>
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington<!--%plaintext <?INDEX {\tt AuthGroupFile} directive> -->
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington><STRONG>Syntax:</STRONG></A> AuthGroupFile <EM>file-path</EM><BR>
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington><STRONG>Context:</STRONG></A> directory, .htaccess<BR>
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington><STRONG>Override:</STRONG></A> AuthConfig<BR>
a093731116a8c24d49b903df7602cf586e499b45Phill CunningtonThe AuthGroupFile directive sets the name of a textual file containing the list
5db031755ab3a8762e266f96f5d74832548d330bPhill Cunningtonof user groups for user authentication. <EM>File-path</EM> is the path
a093731116a8c24d49b903df7602cf586e499b45Phill Cunningtonto the group file. If it is not absolute (<EM>i.e.</EM>, if it
a093731116a8c24d49b903df7602cf586e499b45Phill Cunningtondoesn't begin with a slash), it is treated as relative to the ServerRoot.
bf36b5c30cb4d181af39c91096b86fdf628ca189James PhillpottsEach line of the group file contains a groupname followed by a colon, followed
5ca5216a4064895b869095def90c6a6a2c5d255fJames Phillpottsby the member usernames separated by spaces. Example:
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington<BLOCKQUOTE><CODE>mygroup: bob joe anne</CODE></BLOCKQUOTE>
a093731116a8c24d49b903df7602cf586e499b45Phill CunningtonNote that searching large text files is <EM>very</EM> inefficient;
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington<A HREF="mod_auth_dbm.html#authdbmgroupfile">AuthDBMGroupFile</A> should
a093731116a8c24d49b903df7602cf586e499b45Phill Cunningtonbe used instead.<P>
a093731116a8c24d49b903df7602cf586e499b45Phill CunningtonSecurity: make sure that the AuthGroupFile is stored outside the
a093731116a8c24d49b903df7602cf586e499b45Phill Cunningtondocument tree of the web-server; do <EM>not</EM> put it in the directory that
a093731116a8c24d49b903df7602cf586e499b45Phill Cunningtonit protects. Otherwise, clients will be able to download the AuthGroupFile.<P>
a093731116a8c24d49b903df7602cf586e499b45Phill CunningtonSee also <A HREF="core.html#authname">AuthName</A>,
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington<A HREF="core.html#authtype">AuthType</A> and
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington<A HREF="#authuserfile">AuthUserFile</A>.<P><HR>
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington<H2><A NAME="authuserfile">AuthUserFile</A> directive</H2>
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington<!--%plaintext <?INDEX {\tt AuthUserFile} directive> -->
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington><STRONG>Syntax:</STRONG></A> AuthUserFile <EM>file-path</EM><BR>
HREF="directive-dict.html#Context"
HREF="directive-dict.html#Override"
HREF="directive-dict.html#Status"
HREF="directive-dict.html#Module"
HREF="directive-dict.html#Syntax"
HREF="directive-dict.html#Default"
HREF="directive-dict.html#Context"
HREF="directive-dict.html#Override"
HREF="directive-dict.html#Status"
HREF="directive-dict.html#Module"
HREF="directive-dict.html#Default"
<!--#include virtual="footer.html" -->