This module provides for basic user authentication using textual files. The following config directives are described:
The Directory config directive is central to be able to restrict access to certain areas of the server. Please read about the Directory config directive.
Syntax: allow from
host host ...
Default: allow from all
Module: mod_auth(3)
Context: <Directory>
Related: allow,
AuthGroupFile,
AuthName,
require
allow
defines a set of hosts which should be granted
access to a given directory. host
is one of the following:
all
regexp(3)
)
For example:
allow from 123.34.56.11
All hosts in the specified domain are allowed access.
Syntax: AuthGroupFile
filename
Default: - None -
Module: mod_auth(3)
Context: <Directory>
Related: allow,
AuthName,
AuthUserFile,
require
AuthGroupFile
sets the name of a text file which
contains the list of user groups for user
authentication. filename
is the absolute path to the
group file.
Each line of the group file contains a group name followed by a colon, followed by the member user names separated by spaces. For example:
group1: bob joe ante
For security reasons, make sure that the |
Syntax: AuthName
auth-domain
Default: - None -
Module: mod_auth(3)
Context: <Directory>
Related: allow,
AuthGroupFile,
AuthUserFile,
require
AuthName
sets the name of the authorization realm
(auth-domain
) for a directory. This string informs the
client about which user name and password to use.
Syntax: AuthUserFile
filename
Default: - None -
Module: mod_auth(3)
Context: <Directory>
Related: allow,
AuthGroupFile,
AuthName,
require
AuthUserFile
sets the name of a text file which
contains the list of users and passwords for user
authentication. filename
is the absolute path to the
user file.
Each line of the user file contains a user name followed by a colon, followed by the non-encrypted password. The behavior is undefined if user names are duplicated. For example:
ragnar:s7Xxv7 edward:wwjau8
For security reasons, make sure that the |
Syntax: <Directory
regexp-filename>
Default: - None -
Module: mod_auth(3)
Related: allow,
AuthGroupFile,
AuthUserFile,
AuthName,
require
<Directory>
and </Directory> are used to
enclose a group of directives which applies only to the named
directory and sub-directories of that
directory. regexp-filename
is an extended regular
expression (See regexp(3)
). For example:
<Directory /usr/local/httpd[12]/htdocs> AuthName My Secret Garden AuthUserFile /var/tmp/server_root/auth/user AuthUserFile /var/tmp/server_root/auth/group require user ragnar edward require group group1 allow from 123.345.344.5 </Directory>
If multiple directory sections match the directory (or its parents), then the directives are applied with the shortest match first.
Syntax: require
entity-name entity entity ...
Default: - None -
Module: mod_auth(3)
Context: <Directory>
Related: allow,
AuthGroupFile,
AuthName,
AuthUserFile
require
defines users which should be granted
access to a given directory using a secret password. The allowed
syntaxes are:
require user user-name user-name ...
require group group-name group-name ...
Uses the following EWSAPI interaction data, if available:
{real_name,{Path,AfterPath}}
Exports the following EWSAPI interaction data, if possible:
{remote_user,User}
Uses the following exported EWSAPI functions: