NANOWEB, the aEGiS PHP web server
mod_auth_anydb
If you don't use one of the common databases like
MySQL or
Postgres, you may want to utilize one
of the database abstraction interfaces for database based user
authentication:
To use it you must first get one of these wrappers (PEAR is usually part of
PHP, and the dbx is a compile-time PHP extension).
The
AnydbLoadInterface (to
include the PEAR::DB or ADOdb wrapper - not dbx!) must be given
before
the A HREF="core.html#loadmodule">LoadModule directive of
mod_auth_anydb.php!
The database to be used is specifed in a
DSN-like syntax using the
directive
AuthAnydb = database://dbuser:password@dbserver.example.com/dbname/table
When you specify the database to search authentication data (user/login
names and their passwords) for, you must use the database abbreviation your
database abstraction layer is using (PEAR, ADO, dbx). In their current
versions, there are:
PHP dbx |
mysql, odbc, pgsql, mssql, fbsql, sybase_ct, oci8
|
PEAR::DB |
fbsql, ibase, ifx, msql, mssql, mysql, oci8, odbc, pgsql, storage,
sybase
|
ADOdb |
access, ado, ado_access, ado_mysql, db2, vfp, fbsql, ibase, firebird,
borland_ibase, informix, informix72, mssql, mssqlpo, mysql, mysqlt,
maxsql, oci8, oci8po, oci805, odbc, odbc_mssql, odbc_oracle, oracle,
postgres, postgres64, postgres7, sqlanywhere, sybase
|
You should however have a look at the documentation of your db abstraction
layer.
The
password column can be
either the plain or the crypt() or md5() encoded string. You do not need to
give the encoding type, because this is auto-probed.
NANOWEB, the aEGiS PHP web server