The tool e-db1 is an interface to Berkeley DB/1 hashed databases. Such
files are used in, e.g., user authentication in Apache (specifically by the
mod_auth_db module).
Using e-db1, one can
The invocation of e-db1 is very straight-forward: e-db1 always
requires at least two arguments. The first one is an action, being one of
delete, lookup, insert, or view. The second one is the
database to process.
Depending on the action, further arguments may be needed. The action
delete requires a further "key" argument. The entry with the key is looked
up and removed.
The action lookup also requires a key. The entry with the key is looked
up, and its value is shown.
The action insert requires two further arguments: a key and a value. A
key/value pair is then inserted into (or updated in) the database.
To use e-db1 with databases for Apache's authentication, please observe
the following:
key in all database entries is the username.
value in the entries must be at least the DES-encrypted
password. Optionally, other entries may follow, separated with a colon
(:).
AuthDBUserFile and AuthDBGroupFile
pointing to the same database.
e-db1 to use the same binary DB1 format,
tweaks in Apache's mod_auth_db module may be necessary. See
e-tunity's package webserver.
The simplest way to install e-db1 is to obtain the RPM
e-db1*rpm from http://public.e-tunity.com. The RPM file is
installed by user root using rpm -i rpmfile.
Alternatively, e-db1 can be built from source. To build and
install e-db1 from source, simply unpack the distribution archive,
chdir into the spilled directory, and do a make install. The
prerequisites for a succesful build are:
e-lib utility library,
misc,
db1 support libraries, which must be installed from
a distribution CD or other media.