equal
deleted
inserted
replaced
|
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 ----- ------- |