summaryrefslogtreecommitdiff
path: root/doc/mysql-example.conf
blob: 7f3c6085695f63b3f5b1e266333d49bf1bd663df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Authenticate against MySQL

# Create a new handler called 'MyHandler'
[MYSQL:MyHandler]

# The realm displayed to the user
Realm: LDAP Example

# Only digest authentication allowed
AuthTypes: Digest

# Connect to mysql server with:
DBServer: var/lib/mysql/mysql.sock
DBUser: testuser
DBPassword: testuser
DBDatabase: test

# And authenticate against the clear password in the 'pw' column
DBQuery: SELECT pw FROM testauth WHERE uid = '%u';