Badlop
50ebe2e415
Revert "mod_roster language reworked"
...
This reverts commit 72cf63c0a8
.
2021-01-22 14:22:59 +01:00
Jing Sun
5af7532504
mod_muc/mod_muc_room: add option limits for password and captcha_whitelist ( #2255 )
2021-01-21 16:58:05 +01:00
Paweł Chmielowski
5212b0aaa6
Validate affiliations in set_room_affiliation command
2021-01-21 14:20:30 +01:00
Allan Nordhøy
72cf63c0a8
mod_roster language reworked
2021-01-16 09:17:44 +01:00
Allan Nordhøy
3d1efd14dc
ejabberd_oauth language reworked
2021-01-14 10:21:07 +01:00
Paweł Chmielowski
7fc500dae6
Don't include empty <subject/> in messages sent by send_message
...
Please refer issue #3485
2021-01-13 20:58:13 +01:00
Badlop
b6d90cc55c
Allow non-occupant non-subscribed service admin send private MUC message ( #3474 )
2021-01-13 16:49:45 +01:00
Badlop
59d5cf4d47
Uniformize terms create->register, delete->unregister ( #3482 )
2021-01-13 16:12:00 +01:00
badlop
aff1a62607
Merge pull request #3482 from comradekingu/patch-1
...
mod_register language reworked
2021-01-13 15:57:29 +01:00
Paweł Chmielowski
95c157409b
Fix handling of log_rotate_size: infinity
...
This should fix issue reported in #3462
2021-01-13 11:48:46 +01:00
Allan Nordhøy
3906b5300c
mod_register language reworked
2021-01-13 09:35:36 +01:00
Badlop
50f74c932b
Replace Jabber->XMPP and Ejabberd (thanks to Neustradamus)( #3469 )
2021-01-11 21:11:20 +01:00
Paweł Chmielowski
446cb485ac
Don't use REPLACE for upsert when there are "-" fields.
...
This should fix problem reported in #3476
2021-01-11 14:20:17 +01:00
Badlop
a670451447
Apply cosmetic changes from documentation
2021-01-08 18:34:38 +01:00
Paweł Chmielowski
9be3d948b2
Make ext_mod compile module with debug_info flags
...
This should fix issue #3472
2021-01-07 15:10:39 +01:00
Holger Weiss
e919171393
ejabberd_systemd: Fix comment
2021-01-06 18:52:22 +01:00
Holger Weiss
6f026ca26d
Integrate nicely with systemd
...
Support systemd's watchdog feature and enable it by default in the unit
file, so that ejabberd is auto-restarted if the VM becomes unresponsive.
Also, set the systemd startup type to 'notify', so that startup of
followup units is delayed until ejabberd signals readiness. While at
it, also notify systemd of configuration reload and shutdown states.
Note: "NotifyAccess=all" is required as long as "ejabberdctl foreground"
runs the VM as a new child process, rather than "exec"ing it. This way,
systemd views the ejabberdctl process itself as the main service
process, and would discard notifications from other processes by
default.
2021-01-06 00:20:12 +01:00
Neustradamus
4132aedb9c
XEP-0033 ( #3467 )
...
XEP-0033
2021-01-05 10:05:42 +01:00
Badlop
b8178c79a7
Clarify documentation of log_rotate_size option ( #3462 )
2021-01-04 13:05:28 +01:00
Paweł Chmielowski
aefe3f8585
Document ldap_userjidattr option
2020-12-31 10:30:12 +01:00
ethoms
cdb286d1d1
Add multi-domain support (and flexibility) to LDAP shared roster (rev2). ( #3461 )
2020-12-31 10:19:43 +01:00
Pouriya
c056002f7c
JWT enhancement ( #3460 )
...
* ref: run the default JWT verifier as hook callback
* ref: add system timestamp to JWT debug log
2020-12-28 10:06:45 +01:00
Badlop
705f401961
Fix a pair of pubsub specs to please Dialyzer
2020-12-18 20:40:26 +01:00
Badlop
ac24d6ee9f
Fix typo in case clause detected by Dialyzer
2020-12-18 20:40:17 +01:00
Paweł Chmielowski
9f851008f6
Update spec for get_room_pid
2020-12-18 12:36:31 +01:00
Badlop
1b7502acbc
Old passwd scram tuples do not conform to current records definitions
2020-12-18 10:54:59 +01:00
Paweł Chmielowski
2ab7da1e8f
Use better fallback value for room activity time when skipping room in decide_room
2020-12-17 09:55:12 +01:00
Licaon_Kter
65c5208905
Reword auth_scram_hash info ( #3448 )
2020-12-15 17:47:56 +01:00
Paweł Chmielowski
28186ddf19
Document auth_scram_hash option
2020-12-15 15:40:16 +01:00
Paweł Chmielowski
d8d9ef32ad
Make anonymous auth not override sasl mechaninsm offered by other modules
...
This stop overriding store_type when anonymous is enabled with other
auth modules, we don't really need that since anonymous is not taking
passwords anyway, and this was disabling scram mechanisms.
This fixes issue #2803 .
2020-12-14 16:42:14 +01:00
Paweł Chmielowski
a9ed26e484
Fix getting age of newly created rooms in rooms_unused_*
2020-12-14 09:47:25 +01:00
Pouriya
a76531b90b
feat: add hook to check decoded JWT after success authentication ( #3446 )
2020-12-14 08:14:58 +01:00
Paweł Chmielowski
af9d642a71
Improve auth_mnesia:transform
2020-12-10 14:02:28 +01:00
Paweł Chmielowski
6a659d7475
Improve handling of old scram data in auth_mnesia
2020-12-10 14:00:13 +01:00
Paweł Chmielowski
e5cad9be65
Add hash to scramed password stored in mnesia by earlier version
2020-12-08 12:18:03 +01:00
Paweł Chmielowski
1dc0ecd1e9
Allow to use different hash for storing scram passwords
2020-12-08 12:06:52 +01:00
Paweł Chmielowski
0c09599d7b
Normalize names passed to destroy_room
2020-12-08 09:19:29 +01:00
badlop
e95ae66d3c
Merge pull request #3435 from fdie/fix_odbc_binary_errors
...
also convert embedded errors to binary
2020-12-04 13:48:13 +01:00
Paweł Chmielowski
5f9d480f6a
Simplify updating disk room options in set_room_affiliation
2020-12-04 13:06:53 +01:00
Paweł Chmielowski
d34227cae1
Use specialized upsert with mysql
2020-12-04 13:03:55 +01:00
Paweł Chmielowski
72867f8d1e
Fix more places that needed changes after scram.erl api modifications
2020-12-04 09:20:59 +01:00
Frank Diebolt
8f04491a4d
also convert embedded errors to binary
2020-12-03 19:56:58 +01:00
Paweł Chmielowski
0371b0f664
Add support for SCRAM-SHA-{256,512}-{PLUS} authentication
2020-12-03 15:07:09 +01:00
Paweł Chmielowski
02cc212f16
Fix typo in last commit
2020-12-01 15:39:17 +01:00
Paweł Chmielowski
0fe64674ee
Make decide room better handle rooms that were just hibernated
2020-12-01 15:30:23 +01:00
Paweł Chmielowski
e937ff62fe
Handle unix sockets in misc:ip_to_list
2020-12-01 15:29:58 +01:00
Badlop
d75d69d5d5
Trigger user_send_packet when send_stanza API is called ( #3431 )
2020-12-01 13:14:24 +01:00
Badlop
3581d90d9d
Provide name when pushing new roster item in shared roster group ( #3427 )
2020-11-19 17:07:23 +01:00
Paweł Chmielowski
9e1f3862cb
Fix room_unused_destroy on hibernated rooms
2020-11-19 09:31:14 +01:00
Paweł Chmielowski
c2a3f037bb
Update muc_room just_created timestamp when message is received
...
This together with last history message is used by room_unused_* command
to determine for how long room was not used, this change allow us to skip
checking history, and works even when history is disabled.
2020-11-18 17:14:28 +01:00
Paweł Chmielowski
bf1aacefcb
We don't use persistent field in decide_room
2020-11-18 16:49:43 +01:00
Paweł Chmielowski
e306cb0797
Fix logic that determines room age when history_size=0
2020-11-18 16:49:43 +01:00
Paweł Chmielowski
2e8023158d
Allow room_unused_list/destroy work on hibernated rooms
...
This required adding hibernation time to data stored for room to be able
determine how old was a room, rooms that aren't stored with that
information will use node start time as timestamp for that.
2020-11-16 16:05:16 +01:00
Paweł Chmielowski
81e872c110
Don't do double utf-8 conversion on translated strings in str:format
...
This caused garbled text in some places in webadmin when using language
that used characters > 128.
Thanks to chengshq for noticing this and providing preliminary patch.
2020-11-09 12:20:35 +01:00
Badlop
9ed2ca5079
Document sql_odbc_driver option (copied from docs site)
2020-11-06 16:39:02 +01:00
Badlop
e7e9ca54df
Document outgoing_s2s_ipv4_address and ipv6 options ( #3396 )
2020-11-06 15:52:33 +01:00
Holger Weiss
23a18b1a60
Apply cosmetic changes to outgoing s2s IP options
2020-11-04 13:12:06 +01:00
Holger Weiss
0a88f9c8a9
Merge remote-tracking branch 'processone/pr/3396'
...
* processone/pr/3396:
Add outbound s2s out interface (ipv4/ipv6)
2020-11-04 12:19:49 +01:00
Paweł Chmielowski
de51ba331e
Make sure that jid used as base in mam xml_compress is bare
2020-11-04 10:56:49 +01:00
Holger Weiss
d37b2f851d
mod_push: Fix log message argument
2020-11-04 10:10:20 +01:00
Holger Weiss
f40c5c304d
mod_push: Fix API call return type on error
...
A call that yields a 'rescode' isn't supposed to return an error tuple.
2020-11-04 09:07:30 +01:00
Holger Weiss
37c75f556d
mod_push: Support cache config changes on reload
2020-11-04 09:04:30 +01:00
Paweł Chmielowski
ec61c2f3dc
Change split character in PROXY_USER from \x04 to :
...
This is clearly typo
2020-10-29 16:36:18 +01:00
Paweł Chmielowski
b4ea1625e4
Don't use same value in cache for user don't exist and wrong password
...
By doing this check_password that returned info about mismatched password
caused user_exists checks performed after that to return wrongly that
account doesn't exist.
2020-10-22 11:10:22 +02:00
Paweł Chmielowski
7655e10ba4
Add better error reporting to mod_muc_admin commands
2020-10-20 17:57:19 +02:00
Badlop
b64fff1faa
Document that send_direct_invitation is asynchronous
2020-10-16 15:24:58 +02:00
Badlop
f1e04639bb
Support for MAM Flipped Pages ( #3398 )
2020-10-15 21:42:43 +02:00
Paweł Chmielowski
73dbd34f95
Store room options in create_room_with_opts only if we will start room
...
Previously we could overwrite existing room options and then later return
error because room was already started.
2020-10-15 16:24:50 +02:00
Jerome Sautret
6bbae4cea2
send_direct_invitation command is now asynchronous
...
EJABS-3593
2020-10-15 11:40:22 +02:00
Paweł Chmielowski
b95d67aefb
Make websocket send put back pressure on c2s process
...
Previously c2s was free to generate data to send in unlimited manner, and
just generate queue of messages that are waiting to be send. This could lead to
hitting timouts in stream management ack handling (if c2s generate lot of
packages, after which <r> request was sent, client could even not receive it
before timeout was triggered on server waiting for corresponding <a>).
This changes makes c2s process wait for data being sent to tcp socket
associated with websocket connection, which should help with this problem.
2020-10-13 14:57:33 +02:00
Paweł Chmielowski
73f8aded17
Make mod_muc_admin command work correctly with hibernated rooms
...
This should first try to unhibernate rooms before trying to send messages
to processes handling them.
2020-10-13 13:00:57 +02:00
Jerome Sautret
fdda572c9a
Added sql_odbc_driver option for mssql db
...
Add an option to choose the ODBC driver when sql_type is set to mssql
2020-10-08 16:23:34 +02:00
Holger Weiss
e4d6007293
ejabberd_stun: Rename Logger filter
...
Don't overwrite the Logger filter added by the 'stun' application (which
appends metadata to STUN/TURN log messages).
Closes processone/stun#31 .
2020-10-01 16:37:36 +02:00
Holger Weiss
df58ee924f
mod_register: Allow for account-removal-only setup
...
Since commit de91618070
, it was no longer
possible to configure mod_register so that only account removal (i.e.,
no registration) is permitted. Revert to the previous behavior which
allows admins to freely configure account registration and removal via
separate access rules.
2020-09-29 06:11:30 +02:00
Paweł Chmielowski
583dd15beb
Make roster subscriptions work better with invalid roster state in db
...
Sometimes we can observer combinations of subscription/ask that shouldn't
happen normally, but can be generated with api calls, let's try to handle
that gracefully instead of crashing.
2020-09-22 13:48:49 +02:00
Daniel Kenzelmann
604cc9bb3a
Add outbound s2s out interface (ipv4/ipv6)
...
Adding options taking IPs as string:
outgoing_s2s_ipv4_address: "1.2.3.4"
outgoing_s2s_ipv6_address: "2000:1:1:1::1"
2020-09-21 22:18:46 +02:00
Paweł Chmielowski
b89f3c442c
Use os time instead of system time in values returned by mod_time
...
This timer should correctly work with time warps, and should fix
issue #3390
2020-09-15 12:11:15 +02:00
Badlop
9629601d0b
Refer to the XEP for standard names ( processone/docs.ejabberd.im#97 )
2020-09-11 12:27:05 +02:00
Holger Weiß
e9a053f7ac
Allow for filtering outgoing s2s stanzas ( #3381 )
...
Let 's2s_send_packet' hook callbacks filter stanzas, analogous to the
's2s_receive_packet' hook.
2020-09-07 10:12:19 +02:00
Badlop
a75966f1a2
Revert "Run user_receive_packet in send_message so MAM stores also incoming ( #3377 )"
...
This reverts commit 43f813d6f8
.
2020-09-04 11:37:18 +02:00
Badlop
43f813d6f8
Run user_receive_packet in send_message so MAM stores also incoming ( #3377 )
2020-09-03 17:47:11 +02:00
Stu Tomlinson
bd11a00f8f
Use include_lib() to include headers from dependencies ( #3369 )
2020-09-03 13:45:57 +02:00
Badlop
a3be28b5c4
Provide room disco info identity name only when title was set ( #3370 )
2020-08-28 14:56:25 +02:00
Badlop
743b25448a
New hook to run when a room process is started ( #3353 )
2020-08-28 14:54:06 +02:00
Badlop
66c2f45bff
Show nick also in oneself list of subscriptions ( #3206 )
2020-08-26 19:32:29 +02:00
Badlop
8d969a4a9f
Always show MucSub subscribers nicks ( #3206 )(thanks to Snoopcatt)
2020-08-26 19:32:26 +02:00
Badlop
bf62cf3db6
Add link to docs about default and new database schemas
2020-08-26 11:46:23 +02:00
Holger Weiss
8daea451e3
mod_pubsub: Fix typo in 'hosts' documentation
...
Thanks to Melvin Keskin for spotting this.
2020-08-25 08:21:43 +02:00
Badlop
864188ad65
Mark dangerous buttons with CSS ( #3363 )
2020-08-24 16:44:07 +02:00
Badlop
b9926c6796
Update opt files with "make options"
2020-08-21 18:09:03 +02:00
Badlop
92913389a5
Fix vCard search by User when using Mnesia
...
Reported in
https://stackoverflow.com/questions/63499864/how-to-search-registered-user-on-ejabberd-server-from-client-side-using-smack-li
2020-08-20 16:46:06 +02:00
Holger Weiss
65be619907
mod_pubsub: Remove 'dag' node plugin documentation
...
Commit c9d3beb9eb
removed the 'dag'
node/nodetree plugins.
2020-08-18 06:50:33 +02:00
Badlop
842ec1494c
Fix to allow vhost admins to view WebAdmin menus ( #3355 )
2020-08-10 21:17:59 +02:00
Paweł Chmielowski
8a645a2d3d
Don't forget not-persistent rooms in load_permanent_rooms
...
Only non-persistent rooms that we are storing are those that were hibernated
but also have mucsub subscribers in them. I don't think it makes sense to
destroy those rooms on restart/reload if we didn't destroy them in first
place when last member did leave room, let just handle those rooms like
they are persistent, and kill them only when all user unsubscribe from them
or they are destroyed from api.
2020-08-06 11:44:44 +02:00
Badlop
4a54395561
Improve explanations of cafile options
2020-08-03 15:18:50 +02:00
Paweł Chmielowski
1b168e7d5c
Add support for unix socket in listeners
...
To use it you just need to set port value to "unix:/path/to/socket"
2020-07-28 12:19:30 +02:00
Paweł Chmielowski
d5935fd1ad
Don't log http errors when socket get closed after processing one request
2020-07-28 12:19:30 +02:00
Badlop
2ea5f7856c
In fact misc:try_url/1 is not used anymore
2020-07-15 11:41:51 +02:00
Badlop
e5b66aadaf
Fix try_url/1 parsing of uri_parse result format, reported by Dialyzer
2020-07-14 12:21:37 +02:00
Holger Weiss
e30592c050
mod_stun_disco: Fix function specification
2020-07-11 17:51:20 +02:00