AuthDBMUserFile /var/www/authdb AuthDBMType DB require valid-user
</Location>
Note that the
AuthDBMUserFile
directive can also be used in
.htaccess
files.
The
dbmmanage
Perl script, used to manipulate username and password databases, has been
replaced by
htdbm
in Apache HTTP Server 2.0. The
htdbm
program offers equivalent
functionality and, like
mod_auth_dbm
, can operate a variety of database formats; the
-T
option
can be used on the command line to specify the format to use.
Table 10.1, “Migrating from
dbmmanage
to
htdbm
”
shows how to migrate from a DBM-format
database to
htdbm
format using
dbmmanage
.
Action
dbmmanage command (1.3)
Equivalent htdbm
command (2.0)
Add user to database (using
given password)
dbmmanage authdb add
username password
htdbm -b -TDB authdb
username password
Add user to database
(prompts for password)
dbmmanage authdb adduser
username
htdbm -TDB authdb
username
Remove user from database
dbmmanage authdb delete
username
htdbm -x -TDB authdb
username
List users in database
dbmmanage authdb view
htdbm -l -TDB authdb
Verify a password
dbmmanage authdb check
username
htdbm -v -TDB authdb
username
Table 10.1. Migrating from
dbmmanage
to
htdbm
The
-m
and
-s
options work with both
dbmmanage
and
htdbm
, enabling the use of the MD5 or
SHA1 algorithms for hashing passwords, respectively.
When creating a new database with
htdbm
, the
-c
option must be used.
For more on this topic, refer to the following documentation on the Apache Software
Foundation's website:
•
http://httpd.apache.org/docs-2.0/mod/mod_auth_dbm.html
2.4.6. The
mod_perl
Module
The configuration for
mod_perl
has been moved from
httpd.conf
into the file
/etc/httpd/conf.d/perl.conf
. For this file to be loaded, and hence for
mod_perl
to work,
the statement
Include conf.d/*.conf
must be included in
httpd.conf
as described in
Section 2.1.3, “Dynamic Shared Object (DSO) Support”
.
Modules and Apache HTTP Server 2.0
159
Summary of Contents for ENTERPRISE LINUX 4.5.0 -
Page 1: ...Red Hat Enterprise Linux 4 5 0 4 5 0 Reference Guide ISBN N A Publication date ...
Page 2: ...Red Hat Enterprise Linux 4 5 0 ...
Page 4: ...Red Hat Enterprise Linux 4 5 0 ...
Page 24: ...xxiv ...
Page 26: ......
Page 36: ...12 ...
Page 72: ...48 ...
Page 112: ...88 ...
Page 122: ...98 ...
Page 140: ...116 ...
Page 142: ......
Page 300: ...276 ...
Page 318: ...294 ...
Page 320: ......
Page 332: ...308 ...
Page 350: ...326 ...
Page 378: ...354 ...
Page 388: ...364 ...
Page 394: ...370 ...
Page 395: ...Part IV Appendixes ...
Page 396: ......