Mercurial > prosody-modules
annotate mod_muc_restrict_pm/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 | 8b6696bd9e40 |
| children |
| rev | line source |
|---|---|
|
5910
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
1 --- |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
2 labels: |
|
6044
c88d01599948
mod_muc_restrict_pm: Feature merged to trunk.
Menel <menel@snikket.de>
parents:
6041
diff
changeset
|
3 - 'Stage-Obsolete' |
|
5910
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
4 summary: Limit who may send and recieve MUC PMs |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
5 ... |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
6 |
|
6044
c88d01599948
mod_muc_restrict_pm: Feature merged to trunk.
Menel <menel@snikket.de>
parents:
6041
diff
changeset
|
7 ::: {.alert .alert-warning} |
|
c88d01599948
mod_muc_restrict_pm: Feature merged to trunk.
Menel <menel@snikket.de>
parents:
6041
diff
changeset
|
8 This feature has been merged into |
|
c88d01599948
mod_muc_restrict_pm: Feature merged to trunk.
Menel <menel@snikket.de>
parents:
6041
diff
changeset
|
9 [mod_muc][doc:modules:mod_muc] in trunk and is therefore obsolete when used with a version >0.12.x or trunk. |
|
c88d01599948
mod_muc_restrict_pm: Feature merged to trunk.
Menel <menel@snikket.de>
parents:
6041
diff
changeset
|
10 It can still be used with Prosody 0.12. |
|
c88d01599948
mod_muc_restrict_pm: Feature merged to trunk.
Menel <menel@snikket.de>
parents:
6041
diff
changeset
|
11 ::: |
|
c88d01599948
mod_muc_restrict_pm: Feature merged to trunk.
Menel <menel@snikket.de>
parents:
6041
diff
changeset
|
12 |
|
5910
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
13 # Introduction |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
14 |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
15 This module adds configurable MUC options that restrict and limit who may send MUC PMs to other users. |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
16 |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
17 If a user does not have permissions to send a MUC PM, the MUC will send a policy violation stanza. |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
18 |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
19 # Setup |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
20 |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
21 ```lua |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
22 Component "conference.example.org" "muc" |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
23 |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
24 modules_enabled = { |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
25 "muc_restrict_pm"; |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
26 } |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
27 ``` |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
28 |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
29 Compatibility |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
30 ============= |
|
7358d1b64b1d
mod_muc_restrict_pm: Limit who may send and recieve MUC PMs
Nicholas George <wirlaburla@worlio.com>
parents:
diff
changeset
|
31 |
|
6051
8b6696bd9e40
mod_muc_restrict_pm: Tweak and normalize table
Kim Alvefur <zash@zash.se>
parents:
6049
diff
changeset
|
32 version note |
|
8b6696bd9e40
mod_muc_restrict_pm: Tweak and normalize table
Kim Alvefur <zash@zash.se>
parents:
6049
diff
changeset
|
33 --------- --------------------------------------------------------------------------- |
|
8b6696bd9e40
mod_muc_restrict_pm: Tweak and normalize table
Kim Alvefur <zash@zash.se>
parents:
6049
diff
changeset
|
34 trunk [Integrated](https://hg.prosody.im/trunk/rev/47e1df2d0a37) into `mod_muc` |
|
8b6696bd9e40
mod_muc_restrict_pm: Tweak and normalize table
Kim Alvefur <zash@zash.se>
parents:
6049
diff
changeset
|
35 0.12 Works |
