summaryrefslogtreecommitdiff
path: root/doc/mysql-example.conf
diff options
context:
space:
mode:
Diffstat (limited to 'doc/mysql-example.conf')
-rw-r--r--doc/mysql-example.conf19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/mysql-example.conf b/doc/mysql-example.conf
new file mode 100644
index 0000000..7f3c608
--- /dev/null
+++ b/doc/mysql-example.conf
@@ -0,0 +1,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';