mod_auth_sdb module provides Apache user authentication using LibSDB. SDB is a Simple database library, which provides multiple database support.
Requirements:
· Apache
Installation:
1) Install LibSDB.
See http://siag.nu/libsdb/ for details.
you can choose which RDBMS you use. with its configure option.
2) Make mod_auth_sdb as a DSO module.
modify your Makefile.
INC, LIB and apxs path.
% make
# make install
CREATE TABLES
The Default Tables are below.
CREATE TABLE htpasswd (
user CHAR(16) NOT NULL PRIMARY KEY,
passwd CHAR(16) NOT NULL
);
CREATE TABLE htgroup (
groupname CHAR(16) NOT NULL,
user CHAR(16) NOT NULL
);
CREATE UNIQUE INDEX htgroup_uniq_idx ON htgroup(groupname, user);
CONFIG EXAMPLE
AuthName "SDB Auth"
AuthType basic
AuthSDBURL mysql:host=localhost:db=auth:uid=www:pwd=xxx
# ...
require valid-user
You also use these directives. in your .htaccess
Product's homepage