]> granicus.if.org Git - ejabberd/log
ejabberd
7 years agoImprove overloaded S2S queue processing new_queue
Evgeniy Khramtsov [Fri, 10 Mar 2017 17:21:04 +0000 (20:21 +0300)]
Improve overloaded S2S queue processing

7 years agoAdd support for file-based queues
Evgeniy Khramtsov [Fri, 10 Mar 2017 12:12:43 +0000 (15:12 +0300)]
Add support for file-based queues

It's now possible to use files as internal packet queues.
The following options are introduced:

* queue_type: the option can be set to `ram` (default) or `file`.
  The option can be set per virtual host.
* queue_dir: path to the directory where queues will be allocated.
  The default is 'queue' directory inside Mnesia directory.
  This is a global option and cannot be set per virtual host.

7 years agoReport more TLS errors
Evgeniy Khramtsov [Wed, 8 Mar 2017 05:27:54 +0000 (08:27 +0300)]
Report more TLS errors

7 years agoFix typo and spec
Evgeniy Khramtsov [Tue, 7 Mar 2017 19:21:44 +0000 (22:21 +0300)]
Fix typo and spec

7 years agoRemove forgotten compile_all
Evgeniy Khramtsov [Tue, 7 Mar 2017 18:40:39 +0000 (21:40 +0300)]
Remove forgotten compile_all

7 years agoReport some TLS errors
Evgeniy Khramtsov [Tue, 7 Mar 2017 15:46:02 +0000 (18:46 +0300)]
Report some TLS errors

7 years agoDon't call deprecated jid functions from the test suite
Evgeniy Khramtsov [Tue, 7 Mar 2017 15:11:28 +0000 (18:11 +0300)]
Don't call deprecated jid functions from the test suite

7 years agoBest Practices for Use of SASL EXTERNAL with Certificates (XEP-0178) support
Evgeniy Khramtsov [Tue, 7 Mar 2017 11:20:50 +0000 (14:20 +0300)]
Best Practices for Use of SASL EXTERNAL with Certificates (XEP-0178) support

It is now possible for client connections to login using PKIX certificates.
This is disabled by default, to enable it:

- either set 'tls_verify: true' and 'cafile: /path/to/CAfile'
  in the corresponding listener's section
- or set equivalent per-vhost options 'c2s_tls_verify' and 'c2s_cafile'

7 years agoBetter handle errors in ejabberd_receiver calls
Evgeniy Khramtsov [Thu, 2 Mar 2017 13:02:44 +0000 (16:02 +0300)]
Better handle errors in ejabberd_receiver calls

7 years agoFix previous commit
Evgeniy Khramtsov [Thu, 2 Mar 2017 12:34:26 +0000 (15:34 +0300)]
Fix previous commit

7 years agoRevert "Remove relict mod_service_log"
Evgeniy Khramtsov [Thu, 2 Mar 2017 12:30:34 +0000 (15:30 +0300)]
Revert "Remove relict mod_service_log"

This reverts commit 0d4e1abbd11155a1cddbe809ff09183af1427af8.
However, stanzas are now encapsulated into forwarded element
(as per XEP-0297) instead of <route/> nonza.

7 years agoImprove reporting of unavailable SASL mechanisms
Evgeniy Khramtsov [Wed, 1 Mar 2017 12:23:22 +0000 (15:23 +0300)]
Improve reporting of unavailable SASL mechanisms

7 years agoResolve all addresses from SRV lookup
Evgeniy Khramtsov [Wed, 1 Mar 2017 11:37:35 +0000 (14:37 +0300)]
Resolve all addresses from SRV lookup

7 years agoExternal components must always provide 'to' attribute
Evgeniy Khramtsov [Tue, 28 Feb 2017 21:17:27 +0000 (00:17 +0300)]
External components must always provide 'to' attribute

7 years agoAdd s2s work-around for gmail.com
Evgeniy Khramtsov [Tue, 28 Feb 2017 17:15:05 +0000 (20:15 +0300)]
Add s2s work-around for gmail.com

7 years agoMake sure all hooks are called with proper host in ejabberd_c2s
Evgeniy Khramtsov [Tue, 28 Feb 2017 13:47:31 +0000 (16:47 +0300)]
Make sure all hooks are called with proper host in ejabberd_c2s

7 years agoFix bug in api_permission parsing
Paweł Chmielowski [Tue, 28 Feb 2017 12:36:24 +0000 (13:36 +0100)]
Fix bug in api_permission parsing

7 years agoPropagate the TRANSACTION_TIMEOUT to pgsql driver (EJAB-1266)
Jerome Sautret [Tue, 28 Feb 2017 11:19:07 +0000 (12:19 +0100)]
Propagate the TRANSACTION_TIMEOUT to pgsql driver (EJAB-1266)

7 years agoDon't crash on malformed IP addresses
Evgeniy Khramtsov [Tue, 28 Feb 2017 10:11:49 +0000 (13:11 +0300)]
Don't crash on malformed IP addresses

7 years agoImprove logging of outbound s2s auth failures
Evgeniy Khramtsov [Tue, 28 Feb 2017 09:13:35 +0000 (12:13 +0300)]
Improve logging of outbound s2s auth failures

7 years agoImprove logging of dialback failures
Evgeniy Khramtsov [Tue, 28 Feb 2017 07:13:09 +0000 (10:13 +0300)]
Improve logging of dialback failures

7 years agoResend stream header before calling handle_auth_success/2 callback
Evgeniy Khramtsov [Tue, 28 Feb 2017 07:12:11 +0000 (10:12 +0300)]
Resend stream header before calling handle_auth_success/2 callback

7 years agoFix compilation on R17
Paweł Chmielowski [Mon, 27 Feb 2017 19:38:59 +0000 (20:38 +0100)]
Fix compilation on R17

7 years agoFix parsing of acl/access rules inside oauth sections of api_permissions
Paweł Chmielowski [Mon, 27 Feb 2017 19:23:24 +0000 (20:23 +0100)]
Fix parsing of acl/access rules inside oauth sections of api_permissions

This should fix problem reported in #1568

7 years agoClarify new modules usage in the example config
Evgeniy Khramtsov [Mon, 27 Feb 2017 14:20:04 +0000 (17:20 +0300)]
Clarify new modules usage in the example config

7 years agoFix elixir tests
Paweł Chmielowski [Mon, 27 Feb 2017 11:44:24 +0000 (12:44 +0100)]
Fix elixir tests

7 years agoDon't perform useless resourceprep
Evgeniy Khramtsov [Mon, 27 Feb 2017 10:58:57 +0000 (13:58 +0300)]
Don't perform useless resourceprep

7 years agoUpdate tests to ejabberd_commands changes
Paweł Chmielowski [Mon, 27 Feb 2017 09:45:39 +0000 (10:45 +0100)]
Update tests to ejabberd_commands changes

7 years agoUpdate tests to cyrsasl modifications
Paweł Chmielowski [Mon, 27 Feb 2017 09:45:15 +0000 (10:45 +0100)]
Update tests to cyrsasl modifications

7 years agoReturn ok from start/2
Paweł Chmielowski [Mon, 27 Feb 2017 09:05:35 +0000 (10:05 +0100)]
Return ok from start/2

7 years agoChange loglevel on configuration reload
Evgeniy Khramtsov [Mon, 27 Feb 2017 08:11:29 +0000 (11:11 +0300)]
Change loglevel on configuration reload

7 years agoInvalidate access permissions on configuration reload
Evgeniy Khramtsov [Mon, 27 Feb 2017 06:55:54 +0000 (09:55 +0300)]
Invalidate access permissions on configuration reload

7 years agoFix log message format
Evgeniy Khramtsov [Sun, 26 Feb 2017 13:27:26 +0000 (16:27 +0300)]
Fix log message format

7 years agoPut more stuff under supervision
Evgeniy Khramtsov [Sun, 26 Feb 2017 12:10:59 +0000 (15:10 +0300)]
Put more stuff under supervision

7 years agoDon't fail on elements decoding
Evgeniy Khramtsov [Sun, 26 Feb 2017 08:53:41 +0000 (11:53 +0300)]
Don't fail on elements decoding

7 years agoGet rid of jid:to_string/1 and jid:from_string/1
Evgeniy Khramtsov [Sun, 26 Feb 2017 07:07:12 +0000 (10:07 +0300)]
Get rid of jid:to_string/1 and jid:from_string/1

7 years agoDon't pass empty resource to jid:make()
Evgeniy Khramtsov [Sat, 25 Feb 2017 07:01:01 +0000 (10:01 +0300)]
Don't pass empty resource to jid:make()

7 years agoDon't pass 'from' and 'to' along with stanza in hooks' arguments
Evgeniy Khramtsov [Fri, 24 Feb 2017 18:25:25 +0000 (21:25 +0300)]
Don't pass 'from' and 'to' along with stanza in hooks' arguments

7 years agoDon't polute log with known content types
Evgeniy Khramtsov [Fri, 24 Feb 2017 17:57:24 +0000 (20:57 +0300)]
Don't polute log with known content types

7 years agoGet rid of unused variable warning
Evgeniy Khramtsov [Fri, 24 Feb 2017 14:48:17 +0000 (17:48 +0300)]
Get rid of unused variable warning

7 years agoRemove previous options when the config gets reloaded
Evgeniy Khramtsov [Fri, 24 Feb 2017 14:03:11 +0000 (17:03 +0300)]
Remove previous options when the config gets reloaded

7 years agoAdd gen_mod:is_loaded_elsewhere/2
Evgeniy Khramtsov [Fri, 24 Feb 2017 13:31:39 +0000 (16:31 +0300)]
Add gen_mod:is_loaded_elsewhere/2

7 years agoRestart listeners on configuration reload
Evgeniy Khramtsov [Fri, 24 Feb 2017 12:18:10 +0000 (15:18 +0300)]
Restart listeners on configuration reload

7 years agoWe don't like now()
Paweł Chmielowski [Fri, 24 Feb 2017 11:08:45 +0000 (12:08 +0100)]
We don't like now()

7 years agoAdapt get_last tests to new output
Paweł Chmielowski [Fri, 24 Feb 2017 11:08:35 +0000 (12:08 +0100)]
Adapt get_last tests to new output

7 years agoUpdate tests for changes in acl start code
Paweł Chmielowski [Fri, 24 Feb 2017 10:49:31 +0000 (11:49 +0100)]
Update tests for changes in acl start code

7 years agoImprove config reloading support by ejabberd_auth
Evgeniy Khramtsov [Fri, 24 Feb 2017 11:06:47 +0000 (14:06 +0300)]
Improve config reloading support by ejabberd_auth

7 years agoMake sure that addr_re is always initialized when creating http state
Paweł Chmielowski [Fri, 24 Feb 2017 10:25:10 +0000 (11:25 +0100)]
Make sure that addr_re is always initialized when creating http state

7 years agoReturn ejabberd_sm:stop/0 back
Evgeniy Khramtsov [Fri, 24 Feb 2017 09:39:44 +0000 (12:39 +0300)]
Return ejabberd_sm:stop/0 back

7 years agoMake host header parser work correctly with ipv6 literal addresses
Paweł Chmielowski [Fri, 24 Feb 2017 09:25:16 +0000 (10:25 +0100)]
Make host header parser work correctly with ipv6 literal addresses

7 years agoImprove startup procedure
Evgeniy Khramtsov [Fri, 24 Feb 2017 09:05:47 +0000 (12:05 +0300)]
Improve startup procedure

7 years agoFix a case clause and run c2s_filter_send on send_error/3 17.03-beta
Evgeniy Khramtsov [Fri, 24 Feb 2017 04:57:57 +0000 (07:57 +0300)]
Fix a case clause and run c2s_filter_send on send_error/3

7 years agoget_last now always returns tuple with UTC XEP-0082 and status (#1565)
Badlop [Thu, 23 Feb 2017 22:27:57 +0000 (23:27 +0100)]
get_last now always returns tuple with UTC XEP-0082 and status (#1565)

7 years agoProtect users from delete_old_users command using a fixed access rule (#1462)
Badlop [Thu, 23 Feb 2017 18:38:17 +0000 (19:38 +0100)]
Protect users from delete_old_users command using a fixed access rule (#1462)

7 years agoSeparate list of strings with \n for srg_get_info in mod_http_api (#1500)
Badlop [Thu, 23 Feb 2017 18:23:03 +0000 (19:23 +0100)]
Separate list of strings with \n for srg_get_info in mod_http_api (#1500)

7 years agoSpecify "ExecReload" command in systemd unit
Holger Weiss [Thu, 23 Feb 2017 17:16:56 +0000 (18:16 +0100)]
Specify "ExecReload" command in systemd unit

Now that "ejabberdctl reload_config" works the way most admins would
expect, expose the command via systemd.

7 years agoPrepare mix for 17.03
Christophe Romain [Thu, 23 Feb 2017 17:14:29 +0000 (18:14 +0100)]
Prepare mix for 17.03

7 years agoUpdate dependencies
Christophe Romain [Thu, 23 Feb 2017 17:13:10 +0000 (18:13 +0100)]
Update dependencies

7 years agotools/hook_deps.sh: Search for escript in PATH
Holger Weiss [Thu, 23 Feb 2017 16:38:56 +0000 (17:38 +0100)]
tools/hook_deps.sh: Search for escript in PATH

7 years agoMerge pull request #1499 from weiss/offline-stanza-id
Evgeny Khramtsov [Thu, 23 Feb 2017 16:36:05 +0000 (20:36 +0400)]
Merge pull request #1499 from weiss/offline-stanza-id

Include stanza ID with archived offline messages

7 years agoInclude stanza ID with archived offline messages
Holger Weiss [Thu, 23 Feb 2017 15:55:35 +0000 (16:55 +0100)]
Include stanza ID with archived offline messages

Fixes #1480.

7 years agoAvoid orphan_item leak on affiliation/subscription removal (#1563)
Christophe Romain [Thu, 23 Feb 2017 15:43:22 +0000 (16:43 +0100)]
Avoid orphan_item leak on affiliation/subscription removal (#1563)

7 years agoFix pubsub MySQL schema
Jerome Sautret [Thu, 23 Feb 2017 15:04:29 +0000 (16:04 +0100)]
Fix pubsub MySQL schema

7 years agoStart/stop auth modules when host is added/deleted
Evgeniy Khramtsov [Thu, 23 Feb 2017 13:19:22 +0000 (16:19 +0300)]
Start/stop auth modules when host is added/deleted

7 years agoStop all s2s connections via supervisor calls
Evgeniy Khramtsov [Thu, 23 Feb 2017 13:18:29 +0000 (16:18 +0300)]
Stop all s2s connections via supervisor calls

7 years agoFix elixir tests
Paweł Chmielowski [Thu, 23 Feb 2017 08:53:20 +0000 (09:53 +0100)]
Fix elixir tests

7 years agoImprove reload_config admin command
Evgeniy Khramtsov [Thu, 23 Feb 2017 08:14:49 +0000 (11:14 +0300)]
Improve reload_config admin command

7 years agoStart/stop virtual hosts when reloading configuration file
Evgeniy Khramtsov [Thu, 23 Feb 2017 07:12:19 +0000 (10:12 +0300)]
Start/stop virtual hosts when reloading configuration file

7 years agoRemove unused macro
Evgeniy Khramtsov [Wed, 22 Feb 2017 17:48:51 +0000 (20:48 +0300)]
Remove unused macro

7 years agoMerge branch 'master' of github.com:processone/ejabberd
Evgeniy Khramtsov [Wed, 22 Feb 2017 16:47:00 +0000 (19:47 +0300)]
Merge branch 'master' of github.com:processone/ejabberd

7 years agoReload modules when reloading configuration file
Evgeniy Khramtsov [Wed, 22 Feb 2017 16:46:47 +0000 (19:46 +0300)]
Reload modules when reloading configuration file

7 years agoMake sure all hooks are called with proper host
Evgeniy Khramtsov [Wed, 22 Feb 2017 16:45:12 +0000 (19:45 +0300)]
Make sure all hooks are called with proper host

7 years agoFix match of itemid on get_cached_item, fixes 14e771d8
Christophe Romain [Wed, 22 Feb 2017 16:44:47 +0000 (17:44 +0100)]
Fix match of itemid on get_cached_item, fixes 14e771d8

7 years agoAdd missing NOT NULL restrictions
Christophe Romain [Wed, 22 Feb 2017 10:09:15 +0000 (11:09 +0100)]
Add missing NOT NULL restrictions

7 years agoMove archive tables into lite.sql for better comparison with other schemas
Christophe Romain [Wed, 22 Feb 2017 14:31:15 +0000 (15:31 +0100)]
Move archive tables into lite.sql for better comparison with other schemas

7 years agoRe-enable "replaced" tests
Evgeniy Khramtsov [Tue, 21 Feb 2017 09:53:08 +0000 (12:53 +0300)]
Re-enable "replaced" tests

7 years agoTest stream management queue overload
Evgeniy Khramtsov [Tue, 21 Feb 2017 09:38:03 +0000 (12:38 +0300)]
Test stream management queue overload

7 years agoImprove stream management tests
Evgeniy Khramtsov [Tue, 21 Feb 2017 06:19:51 +0000 (09:19 +0300)]
Improve stream management tests

7 years agoRename mod_sm -> mod_stream_mgmt
Evgeniy Khramtsov [Tue, 21 Feb 2017 06:18:58 +0000 (09:18 +0300)]
Rename mod_sm -> mod_stream_mgmt

7 years agoMerge branch 'master' of github.com:processone/ejabberd
Evgeniy Khramtsov [Tue, 21 Feb 2017 05:46:28 +0000 (08:46 +0300)]
Merge branch 'master' of github.com:processone/ejabberd

7 years agoDon't count resent stanzas
Evgeniy Khramtsov [Tue, 21 Feb 2017 05:44:39 +0000 (08:44 +0300)]
Don't count resent stanzas

Thanks to Holger Weiß for an advise

7 years agoTravis CI: Update MySQL APT repository key
Holger Weiss [Mon, 20 Feb 2017 20:17:34 +0000 (21:17 +0100)]
Travis CI: Update MySQL APT repository key

The old key expired on February 16, 2017.

7 years agoejabberd_c2s: Don't drop 'user_send_packet' result
Holger Weiss [Mon, 20 Feb 2017 12:07:34 +0000 (13:07 +0100)]
ejabberd_c2s: Don't drop 'user_send_packet' result

When handling a <session/> IQ, use the stanza returned by the
'user_send_packet' hook.

Thanks to Evgeniy for spotting this.

7 years agoSupport scrammed passwords in ejabberdctl import_prosody (#1549)
Badlop [Mon, 20 Feb 2017 11:47:56 +0000 (12:47 +0100)]
Support scrammed passwords in ejabberdctl import_prosody (#1549)

7 years agoFix s2s_dns_timeout issues
Evgeniy Khramtsov [Mon, 20 Feb 2017 07:42:16 +0000 (10:42 +0300)]
Fix s2s_dns_timeout issues

7 years agoMerge pull request #1555 from weiss/count-session-iq
Evgeny Khramtsov [Mon, 20 Feb 2017 06:21:16 +0000 (10:21 +0400)]
Merge pull request #1555 from weiss/count-session-iq

Let ejabberd_c2s handle <session/> IQ

7 years agoLet ejabberd_c2s handle <session/> IQ
Holger Weiss [Sun, 19 Feb 2017 21:43:10 +0000 (22:43 +0100)]
Let ejabberd_c2s handle <session/> IQ

This fixes the counting of incoming stanzas for stream management.

7 years agoGet rid of non-breaking space
Evgeniy Khramtsov [Sat, 18 Feb 2017 09:13:48 +0000 (12:13 +0300)]
Get rid of non-breaking space

7 years agoFix some dialyzer warnings
Evgeniy Khramtsov [Sat, 18 Feb 2017 06:36:27 +0000 (09:36 +0300)]
Fix some dialyzer warnings

7 years agoMerge pull request #1553 from lemenkov/config_functions_deprecation
Evgeny Khramtsov [Fri, 17 Feb 2017 16:40:04 +0000 (20:40 +0400)]
Merge pull request #1553 from lemenkov/config_functions_deprecation

Mark local/global config functions as deprecated

7 years agoMark local/global config functions as deprecated
Peter Lemenkov [Fri, 17 Feb 2017 16:20:44 +0000 (19:20 +0300)]
Mark local/global config functions as deprecated

See discussion in PR #1548.

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
7 years agoFix compilation when included as Elixir dependency (#1526)
Christophe Romain [Fri, 17 Feb 2017 15:26:39 +0000 (16:26 +0100)]
Fix compilation when included as Elixir dependency (#1526)

7 years agoCommands documentation lack arguments when policy=user (#1514)
Badlop [Fri, 17 Feb 2017 11:37:42 +0000 (12:37 +0100)]
Commands documentation lack arguments when policy=user (#1514)

7 years agoMerge pull request #1548 from lemenkov/use_get_option
Evgeny Khramtsov [Thu, 16 Feb 2017 19:34:50 +0000 (23:34 +0400)]
Merge pull request #1548 from lemenkov/use_get_option

Use ejabberd_config:get_option/2 instead of ejabberd_config:get_local_option/2

7 years agoUse ejabberd_config:add_option/2 instead of ejabberd_config:add_local_option/2
Peter Lemenkov [Thu, 16 Feb 2017 17:47:47 +0000 (20:47 +0300)]
Use ejabberd_config:add_option/2 instead of ejabberd_config:add_local_option/2

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
7 years agoUse ejabberd_config:get_option/2 instead of ejabberd_config:get_local_option/2
Peter Lemenkov [Thu, 16 Feb 2017 17:41:57 +0000 (20:41 +0300)]
Use ejabberd_config:get_option/2 instead of ejabberd_config:get_local_option/2

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
7 years agoCorrect access_matches spec
Paweł Chmielowski [Thu, 16 Feb 2017 14:38:30 +0000 (15:38 +0100)]
Correct access_matches spec

7 years agoFix some dialyzer warnings
Evgeniy Khramtsov [Thu, 16 Feb 2017 11:18:36 +0000 (14:18 +0300)]
Fix some dialyzer warnings

7 years agoChange routing API
Evgeniy Khramtsov [Thu, 16 Feb 2017 08:00:26 +0000 (11:00 +0300)]
Change routing API

Now 'From' and 'To' arguments must be omitted in functions
and structures related to routing.
The commit deprecates the following functions:
     ejabberd_router:route/3 in favor of ejabberd_router:route/1
     ejabberd_router:route_error/4 in favor of ejabberd_router:route_error/2
     ejabberd_local:route_iq/4 in favor of ejabberd_local:route_iq/2
     ejabberd_local:route_iq/5 in favor of ejabberd_local:route_iq/3
The format of {route, From, To, Packet} is changed in favor of {route, Packet}

7 years agoMerge branch 'master' of github.com:processone/ejabberd
Evgeniy Khramtsov [Wed, 15 Feb 2017 21:23:00 +0000 (00:23 +0300)]
Merge branch 'master' of github.com:processone/ejabberd