Mercurial > prosody-modules
annotate mod_s2s_idle_timeout/README.md @ 6319:04c3273cb81f
mod_auth_cyrus: Add empty 'profile' table to SASL handler objects
This is for compatibility with Prosody's built-in util.sasl objects.
A SASL profile table usually includes methods supported by the backend, which
can be used by SASL mechanism handlers to perform operations (such as testing
the password). It also optionally contains a 'cb' field with channel binding
method handlers.
The Cyrus backend doesn't support channel binding, and doesn't have the same
concept of auth backend methods (it handles all that internally, and Prosody
has no insight or control over it).
Thus, we create an empty profile which informs Prosody that the SASL handler
does not support any of the auth or channel binding methods. Some features
will not work, but they didn't work anyway. This just makes it explicit.
This fixes a traceback in mod_sasl2_fast, which expected SASL handlers to
always contain a 'profile' field.
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 04 Sep 2025 10:14:46 +0100 |
| parents | fe0a58b863db |
| children |
| rev | line source |
|---|---|
|
1803
4d73a1a6ba68
Convert all wiki pages to Markdown
Kim Alvefur <zash@zash.se>
parents:
1782
diff
changeset
|
1 --- |
|
4d73a1a6ba68
Convert all wiki pages to Markdown
Kim Alvefur <zash@zash.se>
parents:
1782
diff
changeset
|
2 labels: |
|
4d73a1a6ba68
Convert all wiki pages to Markdown
Kim Alvefur <zash@zash.se>
parents:
1782
diff
changeset
|
3 - 'Stage-Stable' |
|
4d73a1a6ba68
Convert all wiki pages to Markdown
Kim Alvefur <zash@zash.se>
parents:
1782
diff
changeset
|
4 summary: 'Close idle server-to-server connections' |
|
4d73a1a6ba68
Convert all wiki pages to Markdown
Kim Alvefur <zash@zash.se>
parents:
1782
diff
changeset
|
5 ... |
| 1782 | 6 |
|
1803
4d73a1a6ba68
Convert all wiki pages to Markdown
Kim Alvefur <zash@zash.se>
parents:
1782
diff
changeset
|
7 Introduction |
|
4d73a1a6ba68
Convert all wiki pages to Markdown
Kim Alvefur <zash@zash.se>
parents:
1782
diff
changeset
|
8 ============ |
| 1782 | 9 |
|
6024
451ec67f2dd3
mod_s2s_idle_timeout: Reword README
Menel <menel@snikket.de>
parents:
6023
diff
changeset
|
10 By default prosody does not close s2s |
|
451ec67f2dd3
mod_s2s_idle_timeout: Reword README
Menel <menel@snikket.de>
parents:
6023
diff
changeset
|
11 connections. This module changes that |
|
6026
d39ddf13ff0a
mod_s2s_idle_timeout: Reword Readme
Menel <menel@snikket.de>
parents:
6024
diff
changeset
|
12 behaviour by introducing an idle timeout. |
|
6024
451ec67f2dd3
mod_s2s_idle_timeout: Reword README
Menel <menel@snikket.de>
parents:
6023
diff
changeset
|
13 It will close server-to-server connections |
|
1803
4d73a1a6ba68
Convert all wiki pages to Markdown
Kim Alvefur <zash@zash.se>
parents:
1782
diff
changeset
|
14 after they have been silent for a while. |
| 1782 | 15 |
|
1803
4d73a1a6ba68
Convert all wiki pages to Markdown
Kim Alvefur <zash@zash.se>
parents:
1782
diff
changeset
|
16 Configuration |
|
4d73a1a6ba68
Convert all wiki pages to Markdown
Kim Alvefur <zash@zash.se>
parents:
1782
diff
changeset
|
17 ============= |
|
4d73a1a6ba68
Convert all wiki pages to Markdown
Kim Alvefur <zash@zash.se>
parents:
1782
diff
changeset
|
18 |
|
6024
451ec67f2dd3
mod_s2s_idle_timeout: Reword README
Menel <menel@snikket.de>
parents:
6023
diff
changeset
|
19 The default timeout is 300 seconds (5 minutes). |
|
451ec67f2dd3
mod_s2s_idle_timeout: Reword README
Menel <menel@snikket.de>
parents:
6023
diff
changeset
|
20 To change this simply put in the config: |
|
1803
4d73a1a6ba68
Convert all wiki pages to Markdown
Kim Alvefur <zash@zash.se>
parents:
1782
diff
changeset
|
21 |
|
6024
451ec67f2dd3
mod_s2s_idle_timeout: Reword README
Menel <menel@snikket.de>
parents:
6023
diff
changeset
|
22 s2s_idle_timeout = 180 -- time in seconds |
| 1782 | 23 |
|
1803
4d73a1a6ba68
Convert all wiki pages to Markdown
Kim Alvefur <zash@zash.se>
parents:
1782
diff
changeset
|
24 Compatibility |
|
4d73a1a6ba68
Convert all wiki pages to Markdown
Kim Alvefur <zash@zash.se>
parents:
1782
diff
changeset
|
25 ============= |
| 1782 | 26 |
|
6023
8ea02e737098
mod_s2s_idle_timeout: Update Compability section of README.md
Menel <menel@snikket.de>
parents:
5975
diff
changeset
|
27 Prosody Version Status |
| 6262 | 28 ----------------- ------------------------ |
| 29 trunk Works as of 2025-06-13 | |
| 30 13.0 Works | |
|
6253
502963b86fbc
:multble modules: fix tab-> space
Menel <menel@snikket.de>
parents:
6252
diff
changeset
|
31 0.12 Works |
