Red Hat ENTERPRISE LINUX 3 Reference Manual page 152

Hide thumbs Also See for ENTERPRISE LINUX 3:
Table of Contents

Advertisement

134
10.2.4.4. The
mod_auth_dbm
Apache HTTP Server 1.3 supported two authentication modules,
which used Berkeley Databases and DBM databases respectively. These modules have been com-
bined into a single module named
several different database formats. To migrate from
justed by replacing
AuthDBUserFile
AuthDBMUserFile
to indicate the type of database file in use.
The following example shows a sample
Location /private/>
AuthType Basic
AuthName "My Private Files"
AuthDBUserFile /var/www/authdb
require valid-user
/Location>
To migrate this setting to version 2.0 of Apache HTTP Server, use the following structure:
Location /private/>
AuthType Basic
AuthName "My Private Files"
AuthDBMUserFile /var/www/authdb
AuthDBMType DB
require valid-user
/Location>
Note that the
AuthDBMUserFile
The
Perl script, used to manipulate user name and password databases, has been replaced
dbmmanage
by
in Apache HTTP Server 2.0. The
htdbm
can operate a variety of database formats; the
mod_auth_dbm
line to specify the format to use.
Table 10-1 shows how to migrate from a DBM-format database to
Action
Add user to database (using
given password)
Add user to database (prompts
for password)
Remove user from database
List users in database
Verify a password
Table 10-1. Migrating from
The
and
options work with both
-m
-s
algorithms for hashing passwords, respectively.
When creating a new database with
and
mod_auth_db
mod_auth_dbm
and
and
AuthDBMGroupFile
mod_auth_db
directive can also be used in
dbmmanage command
(1.3)
dbmmanage authdb add
username password
dbmmanage authdb
adduser username
dbmmanage authdb delete
username
dbmmanage authdb view
dbmmanage authdb check
username
dbmmanage
dbmmanage
htdbm
Modules
in Apache HTTP Server 2.0, which can access
mod_auth_db
AuthDBGroupFile
. Also, the directive
configuration for Apache HTTP Server 1.3:
program offers equivalent functionality and like
htdbm
-T
to
htdbm
and
, enabling the use of the MD5 or SHA1
htdbm
, the
option must be used.
-c
Chapter 10. Apache HTTP Server
and
mod_auth_db
, configuration files should be ad-
with the
mod_auth_dbm
AuthDBMType DB
files.
.htaccess
option can be used on the command
format using
htdbm
Equivalent htdbm
command (2.0)
htdbm -b -TDB authdb
username password
htdbm -TDB authdb
username
htdbm -x -TDB authdb
username
htdbm -l -TDB authdb
htdbm -v -TDB authdb
username
,
mod_auth_dbm
equivalents:
must be added
.
dbmmanage

Advertisement

Table of Contents
loading

Table of Contents