DBI
authentication backend
Presentation
This backend relies on Perl DBI modules to
connect any supported database product (MySQL, PostGRESQL, Oracle, etc.)
We suppose there is a table containing a login
column and a password column. Password can use a hash mechanism,
compatible with an SQL function (example: sha(), sha1(), md5()).
Configuration
All configuration is done in Manager, in DBI
parameters. First, choose "DBI" as authentication module.
Connection
Set how to reach the database:
- dbiAuthChain: connection chain,
example: dbi:mysql:database=lemonldapng;host=localhost
- dbiAuthUser: connection user,
example: admin
- dbiAuthPassword: connection
password, example: secret
Schema
Describe your database:
- dbiAuthTable: table name where to
find logins and passwords
- dbiAuthLoginCol: login field
name
- dbiAuthPasswordCol: password field
name
Password
Set the hash mechanism to use:
- dbiAuthPasswordHash: hash function,
example: md5
See also