From: Rich Bowen Letting more than one
person in
Possible problems
Alternate password storage
More information
file
is the default value
for this directive. You'll need to use this directive if you are
choosing a different source for authentication, such as
- mod_authn_dbm
or mod_auth_dbd
.
+ mod_authn_dbm
or mod_authn_dbd
.
The AuthUserFile
directive sets the path to the password file that we just
@@ -292,6 +293,8 @@ person in
AuthType Basic
AuthName "By Invitation Only"
+ # Optional line:
+ AuthBasicProvider file
AuthUserFile /usr/local/apache/passwd/passwords
AuthGroupFile /usr/local/apache/passwd/groups
Require group GroupName
@@ -340,6 +343,33 @@ person in
different authentication method at that time.
Because storing passwords in plain text files has the above + problems, you may wish to store your passwords somewhere else, such + as in a database.
+ +mod_authn_dbm
and mod_authn_dbd
+ are two modules which make this possible. Rather than selecting
+ AuthBasicSource
file,
+ instead you can choose dbm
or dbd
as your
+ storage format.
To select a dbd file rather than a text file, for example:
+ +
+ <Directory /www/docs/private>
+ AuthName "Private"
+ AuthType Basic
+ AuthBasicProvider dbm
+ AuthDBMUserFile /www/passwords/passwd.dbm
+ Require valid-user
+
Other options are available. Consult the
+ mod_authn_dbm
documentation for more details.
You should also read the documentation for
mod_auth_basic
and mod_authz_host
which
diff --git a/docs/manual/howto/auth.xml b/docs/manual/howto/auth.xml
index cb6d0608329..f0b3d397406 100644
--- a/docs/manual/howto/auth.xml
+++ b/docs/manual/howto/auth.xml
@@ -230,7 +230,7 @@ module from each group.
file
is the default value
for this directive. You'll need to use this directive if you are
choosing a different source for authentication, such as
- The
AuthName "By Invitation Only"
+ # Optional line:
+ AuthBasicProvider file
AuthUserFile /usr/local/apache/passwd/passwords
AuthGroupFile /usr/local/apache/passwd/groups
Require group GroupName
@@ -341,6 +343,33 @@ person in
different authentication method at that time.
Because storing passwords in plain text files has the above + problems, you may wish to store your passwords somewhere else, such + as in a database.
+ +dbm
or dbd
as your
+ storage format.
To select a dbd file rather than a text file, for example:
+ +Other options are available. Consult the
+
You should also read the documentation for