Comparison

mod_auth_sql/README.markdown @ 1803:4d73a1a6ba68

Convert all wiki pages to Markdown
author Kim Alvefur <zash@zash.se>
date Fri, 28 Aug 2015 18:03:58 +0200
parent 1782:mod_auth_sql/README.wiki@29f3d6b7ad16
comparison
equal deleted inserted replaced
1802:0ab737feada6 1803:4d73a1a6ba68
1 ---
2 labels:
3 - 'Type-Auth'
4 - 'Stage-Stable'
5 summary: SQL Database authentication module
6 ...
7
8 Introduction
9 ============
10
11 Allow client authentication to be handled by an SQL database query.
12
13 Unlike mod\_storage\_sql (which is supplied with Prosody) this module
14 allows for custom schemas (though currently it is required to edit the
15 source).
16
17 Configuration
18 =============
19
20 As with all auth modules, there is no need to add this to
21 modules\_enabled. Simply add in the global section, or for the relevant
22 hosts:
23
24 authentication = "sql"
25
26 This module reuses the database configuration of
27 [mod\_storage\_sql](http://prosody.im/doc/modules/mod_storage_sql) (the
28 'sql' option), which you can set even if you are not using SQL as
29 Prosody's primary storage backend.
30
31 The query is currently hardcoded in the module, so you will need to edit
32 the module to change it. The default query is compatible with jabberd2
33 DB schema.
34
35 Compatibility
36 =============
37
38 ----- -------
39 0.8 Works
40 ----- -------