prosody.git
14 years agoMerge with Rob
Matthew Wild [Sun, 3 Jan 2010 15:17:51 +0000 (15:17 +0000)]
Merge with Rob

14 years agoprosodyctl: Gracefully handle a missing stty command, and fall back to ANSI escape...
Matthew Wild [Sun, 3 Jan 2010 03:36:40 +0000 (03:36 +0000)]
prosodyctl: Gracefully handle a missing stty command, and fall back to ANSI escape sequences

14 years agomod_httpserver: Rudimentary directory detection, return forbidden instead of causing...
Matthew Wild [Fri, 1 Jan 2010 21:32:23 +0000 (21:32 +0000)]
mod_httpserver: Rudimentary directory detection, return forbidden instead of causing a traceback (since commit 0325f241a26c)

14 years agoprosody.cfg.lua.dist: Remove lie about requiring console_enabled
Matthew Wild [Fri, 1 Jan 2010 03:32:26 +0000 (03:32 +0000)]
prosody.cfg.lua.dist: Remove lie about requiring console_enabled

14 years agoprosody.cfg.lua.dist: Remove trailing whitespace
Matthew Wild [Fri, 1 Jan 2010 03:29:12 +0000 (03:29 +0000)]
prosody.cfg.lua.dist: Remove trailing whitespace

14 years agoutil.events: Rename add_plugin() and remove_plugin() to add_handlers() and remove_han...
Matthew Wild [Thu, 31 Dec 2009 02:39:40 +0000 (02:39 +0000)]
util.events: Rename add_plugin() and remove_plugin() to add_handlers() and remove_handlers() respectively

14 years agoutil.signal: Update header comment for new filename
Matthew Wild [Wed, 30 Dec 2009 20:24:11 +0000 (20:24 +0000)]
util.signal: Update header comment for new filename

14 years agoAdded notification of configuration changes for MUCs
Rob Hoelz [Wed, 30 Dec 2009 19:26:11 +0000 (13:26 -0600)]
Added notification of configuration changes for MUCs

14 years agoutil.sasl_cyrus: Report an error if Cyrus SASL init fails.
Tobias Markmann [Wed, 30 Dec 2009 15:43:08 +0000 (16:43 +0100)]
util.sasl_cyrus: Report an error if Cyrus SASL init fails.

14 years agoAdd support for non-anonymous MUC rooms
Rob Hoelz [Tue, 29 Dec 2009 22:21:12 +0000 (16:21 -0600)]
Add support for non-anonymous MUC rooms

14 years agoutil.sasl_cyrus: Removing whitespace.
Tobias Markmann [Tue, 29 Dec 2009 00:04:48 +0000 (01:04 +0100)]
util.sasl_cyrus: Removing whitespace.

14 years agoutil.sasl_cyrus: Automatically initialize Cyrus SASL with the first used service...
Tobias Markmann [Tue, 29 Dec 2009 00:03:37 +0000 (01:03 +0100)]
util.sasl_cyrus: Automatically initialize Cyrus SASL with the first used service name.

14 years agoutil.sasl_cyrus: Change variable name.
Tobias Markmann [Mon, 28 Dec 2009 21:08:32 +0000 (22:08 +0100)]
util.sasl_cyrus: Change variable name.

14 years agoutil.sasl_cyrus: Fixing cyrus mechanism list parsing. (Thanks darkrain)
Tobias Markmann [Mon, 28 Dec 2009 19:21:49 +0000 (20:21 +0100)]
util.sasl_cyrus: Fixing cyrus mechanism list parsing. (Thanks darkrain)

14 years agonet.httpserver: Optimized response serialization.
Waqas Hussain [Sun, 27 Dec 2009 05:09:22 +0000 (10:09 +0500)]
net.httpserver: Optimized response serialization.

14 years agomod_saslauth: Adjust sanitizing.
Tobias Markmann [Wed, 23 Dec 2009 22:13:39 +0000 (23:13 +0100)]
mod_saslauth: Adjust sanitizing.

14 years agomod_saslauth: Sanitize debugging information so it won't break terminal emulation...
Tobias Markmann [Wed, 23 Dec 2009 22:09:44 +0000 (23:09 +0100)]
mod_saslauth: Sanitize debugging information so it won't break terminal emulation when using GSSAPI auth.

14 years agofirst working version with Cyrus SASL support.
jorj@jorj.org [Wed, 23 Dec 2009 21:46:49 +0000 (16:46 -0500)]
first working version with Cyrus SASL support.

14 years agoadded comment to remind us to fix binary output breaking the terminal
jorj@jorj.org [Wed, 23 Dec 2009 21:45:03 +0000 (16:45 -0500)]
added comment to remind us to fix binary output breaking the terminal
later

14 years agoutil.sasl_cyrus: Further fixing and cleanup.
Tobias Markmann [Tue, 22 Dec 2009 20:08:58 +0000 (21:08 +0100)]
util.sasl_cyrus: Further fixing and cleanup.

14 years agoutil.sasl_cyrus: Initializing Cyrus SASL library and a bit cleanup.
Tobias Markmann [Tue, 22 Dec 2009 19:55:35 +0000 (20:55 +0100)]
util.sasl_cyrus: Initializing Cyrus SASL library and a bit cleanup.

14 years agoutil.sasl_cyrus: Log errors if CyrusSASL init fails.
Tobias Markmann [Tue, 22 Dec 2009 19:21:44 +0000 (20:21 +0100)]
util.sasl_cyrus: Log errors if CyrusSASL init fails.

14 years agomod_saslauth: Make service_name configurable for CyrusSASL users.
Tobias Markmann [Tue, 22 Dec 2009 19:20:37 +0000 (20:20 +0100)]
mod_saslauth: Make service_name configurable for CyrusSASL users.

14 years agomod_saslauth: Add support for CyrusSASL.
Tobias Markmann [Tue, 22 Dec 2009 18:27:19 +0000 (19:27 +0100)]
mod_saslauth: Add support for CyrusSASL.

14 years agoAdding sasl_cyrus.lua. A sasl.lua drop-in replacement to use CyrusSASL for all c2s...
Tobias Markmann [Tue, 22 Dec 2009 18:26:16 +0000 (19:26 +0100)]
Adding sasl_cyrus.lua. A sasl.lua drop-in replacement to use CyrusSASL for all c2s authentication.

14 years agomod_saslauth: Requiring c2s encryption means requiring c2s encryption... thanks Flo
Matthew Wild [Mon, 21 Dec 2009 22:00:49 +0000 (22:00 +0000)]
mod_saslauth: Requiring c2s encryption means requiring c2s encryption... thanks Flo

14 years agonet.dns: Update synchronous path for new connection API
Brian Cully [Mon, 21 Dec 2009 17:03:47 +0000 (17:03 +0000)]
net.dns: Update synchronous path for new connection API

14 years agoutil.prosodyctl: Saner determination of Prosody executable path
Brian Cully [Mon, 21 Dec 2009 16:52:12 +0000 (16:52 +0000)]
util.prosodyctl: Saner determination of Prosody executable path

14 years agomod_pep: Added a TODO.
Waqas Hussain [Mon, 21 Dec 2009 01:37:58 +0000 (06:37 +0500)]
mod_pep: Added a TODO.

14 years agomod_pep: Handle service discovery queries for bare account JIDs (thanks darkrain).
Waqas Hussain [Mon, 21 Dec 2009 01:26:37 +0000 (06:26 +0500)]
mod_pep: Handle service discovery queries for bare account JIDs (thanks darkrain).

14 years agomod_disco: Handle and fire events for service discovery queries for bare account...
Waqas Hussain [Mon, 21 Dec 2009 01:25:12 +0000 (06:25 +0500)]
mod_disco: Handle and fire events for service discovery queries for bare account JIDs (thanks darkrain).

14 years agos2smanager: Give reasons to destroy_session in more cases, including when DNS lookup...
Matthew Wild [Thu, 17 Dec 2009 21:50:02 +0000 (21:50 +0000)]
s2smanager: Give reasons to destroy_session in more cases, including when DNS lookup fails

14 years agoMerge with backout branch
Matthew Wild [Thu, 17 Dec 2009 21:38:16 +0000 (21:38 +0000)]
Merge with backout branch

14 years agos2smanager: Send reply stream header only after checking we serve this host (sorry...
Matthew Wild [Thu, 17 Dec 2009 21:36:31 +0000 (21:36 +0000)]
s2smanager: Send reply stream header only after checking we serve this host (sorry darkrain... :) )

14 years agoBacked out changeset 78c5cb163ea9, to fix another way. Haven't done this for a while :)
Matthew Wild [Thu, 17 Dec 2009 21:33:35 +0000 (21:33 +0000)]
Backed out changeset 78c5cb163ea9, to fix another way. Haven't done this for a while :)

14 years agos2smanager: More whitespace
Matthew Wild [Thu, 17 Dec 2009 21:18:02 +0000 (21:18 +0000)]
s2smanager: More whitespace

14 years agos2smanager: Mark stream as opened sooner, this prevents a duplicated stream header...
Matthew Wild [Thu, 17 Dec 2009 21:17:47 +0000 (21:17 +0000)]
s2smanager: Mark stream as opened sooner, this prevents a duplicated stream header on host-unknown errors (thanks darkrain and his mail server)

14 years agos2smanager: Whitespace
Matthew Wild [Thu, 17 Dec 2009 21:14:44 +0000 (21:14 +0000)]
s2smanager: Whitespace

14 years agonet.server_event: Add properties like _ip and _port to server objects too
Matthew Wild [Thu, 17 Dec 2009 20:30:41 +0000 (20:30 +0000)]
net.server_event: Add properties like _ip and _port to server objects too

14 years agonet.server_event: Add :serverport() method to be compatible with old API
Matthew Wild [Thu, 17 Dec 2009 20:30:10 +0000 (20:30 +0000)]
net.server_event: Add :serverport() method to be compatible with old API

14 years agomod_bosh: Update for new connection API
Matthew Wild [Thu, 17 Dec 2009 20:28:32 +0000 (20:28 +0000)]
mod_bosh: Update for new connection API

14 years agohttpserver_listener: Update for new connection API
Matthew Wild [Thu, 17 Dec 2009 20:22:52 +0000 (20:22 +0000)]
httpserver_listener: Update for new connection API

14 years agonet.httpserver: Fix usage of old connection API syntax
Matthew Wild [Thu, 17 Dec 2009 20:10:11 +0000 (20:10 +0000)]
net.httpserver: Fix usage of old connection API syntax

14 years agoxmppserver_listener: Make log messages during SRV retries clearer
Matthew Wild [Thu, 17 Dec 2009 19:01:57 +0000 (19:01 +0000)]
xmppserver_listener: Make log messages during SRV retries clearer

14 years agoxmppserver_listener: When a connection fails, pass the reason to destroy_session
Matthew Wild [Thu, 17 Dec 2009 19:00:36 +0000 (19:00 +0000)]
xmppserver_listener: When a connection fails, pass the reason to destroy_session

14 years agos2smanager: Have both destroy_session and bounce_sendq accept a reason string to...
Matthew Wild [Thu, 17 Dec 2009 18:59:29 +0000 (18:59 +0000)]
s2smanager: Have both destroy_session and bounce_sendq accept a reason string to include in bounced stanzas

14 years agonet.server_event: Load ssl/socket libraries if not already available
Matthew Wild [Thu, 17 Dec 2009 16:53:28 +0000 (16:53 +0000)]
net.server_event: Load ssl/socket libraries if not already available

14 years agoutil.timer: Use luaevent's built-in method of repeating an event (fixes a weird crash)
Matthew Wild [Thu, 17 Dec 2009 16:52:39 +0000 (16:52 +0000)]
util.timer: Use luaevent's built-in method of repeating an event (fixes a weird crash)

14 years agoprosody: Fixed a possible nil concatenation.
Waqas Hussain [Tue, 15 Dec 2009 19:11:54 +0000 (00:11 +0500)]
prosody: Fixed a possible nil concatenation.

14 years agoprosody: Fix to net_activate_ports to mend binding to specific interfaces
Paul Aurich [Tue, 15 Dec 2009 18:58:22 +0000 (18:58 +0000)]
prosody: Fix to net_activate_ports to mend binding to specific interfaces

14 years agonet.http: Don't expect the body on redirects
Matthew Wild [Thu, 10 Dec 2009 22:13:04 +0000 (22:13 +0000)]
net.http: Don't expect the body on redirects

14 years agoprosody: Added config option 'ssl_ports' to allow multiplexed SSL ports.
Waqas Hussain [Thu, 10 Dec 2009 13:40:21 +0000 (18:40 +0500)]
prosody: Added config option 'ssl_ports' to allow multiplexed SSL ports.

14 years agomod_httpserver: Text files are text/plain, and not plain/text.
Waqas Hussain [Thu, 10 Dec 2009 11:52:08 +0000 (16:52 +0500)]
mod_httpserver: Text files are text/plain, and not plain/text.

14 years agonet.httpserver: Removed mime handling (now in mod_httpserver). Unknown dynamic conten...
Waqas Hussain [Thu, 10 Dec 2009 11:36:33 +0000 (16:36 +0500)]
net.httpserver: Removed mime handling (now in mod_httpserver). Unknown dynamic content is now always served as text/html.

14 years agomod_httpserver: Removed a log message.
Waqas Hussain [Thu, 10 Dec 2009 11:34:38 +0000 (16:34 +0500)]
mod_httpserver: Removed a log message.

14 years agomod_httpserver: Read files in binary mode; fixes issues with serving binary files.
Waqas Hussain [Thu, 10 Dec 2009 11:27:17 +0000 (16:27 +0500)]
mod_httpserver: Read files in binary mode; fixes issues with serving binary files.

14 years agomod_httpserver: Skip returning a Content-Type when not known (application/octet-strea...
Waqas Hussain [Thu, 10 Dec 2009 11:25:50 +0000 (16:25 +0500)]
mod_httpserver: Skip returning a Content-Type when not known (application/octet-stream is not a correct default).

14 years agomod_httpserver: Return Content-Type header based on file extension.
Waqas Hussain [Thu, 10 Dec 2009 11:22:34 +0000 (16:22 +0500)]
mod_httpserver: Return Content-Type header based on file extension.

14 years agomod_httpserver: Delay setup until after server is started.
Waqas Hussain [Thu, 10 Dec 2009 11:21:33 +0000 (16:21 +0500)]
mod_httpserver: Delay setup until after server is started.

14 years agomod_bosh: Delay setup until after server is started.
Waqas Hussain [Thu, 10 Dec 2009 11:21:06 +0000 (16:21 +0500)]
mod_bosh: Delay setup until after server is started.

14 years agoprosody: Use the multiplex listener when the 'ports' config option is specified.
Waqas Hussain [Thu, 10 Dec 2009 00:08:59 +0000 (05:08 +0500)]
prosody: Use the multiplex listener when the 'ports' config option is specified.

14 years agonet_activate_ports: Use the default config option 'ports' when no option is specified.
Waqas Hussain [Thu, 10 Dec 2009 00:07:32 +0000 (05:07 +0500)]
net_activate_ports: Use the default config option 'ports' when no option is specified.

14 years agomultiplex_listener: Initial commit. Multiple protocols on a single port.
Waqas Hussain [Thu, 10 Dec 2009 00:04:09 +0000 (05:04 +0500)]
multiplex_listener: Initial commit. Multiple protocols on a single port.

14 years agomodulemanager: Fire item-removed events on module unload.
Waqas Hussain [Wed, 9 Dec 2009 22:02:04 +0000 (03:02 +0500)]
modulemanager: Fire item-removed events on module unload.

14 years agomodulemanager: Fixed a global access.
Waqas Hussain [Wed, 9 Dec 2009 22:00:16 +0000 (03:00 +0500)]
modulemanager: Fixed a global access.

14 years agoprosody: Call tostring on the key being used for nil global read before concatenating...
Waqas Hussain [Wed, 9 Dec 2009 21:50:23 +0000 (02:50 +0500)]
prosody: Call tostring on the key being used for nil global read before concatenating it with a string.

14 years agoprosody: Log a warning and traceback, but don't throw an error on nil global read.
Waqas Hussain [Wed, 9 Dec 2009 21:47:13 +0000 (02:47 +0500)]
prosody: Log a warning and traceback, but don't throw an error on nil global read.

14 years agoMainfile: Broke up a really long line.
Waqas Hussain [Wed, 9 Dec 2009 20:56:16 +0000 (01:56 +0500)]
Mainfile: Broke up a really long line.

14 years agoMerge with 0.6
Matthew Wild [Wed, 9 Dec 2009 13:20:46 +0000 (13:20 +0000)]
Merge with 0.6

14 years agomod_vcard: Stricter matching of vcard stanzas with vcard_compatibility enabled, fixes...
Matthew Wild [Wed, 9 Dec 2009 13:19:50 +0000 (13:19 +0000)]
mod_vcard: Stricter matching of vcard stanzas with vcard_compatibility enabled, fixes intercepting stanzas to the full JID that it shouldn't

14 years agoutil.signal: Make kill() available on Solaris; really fixes #136.
Waqas Hussain [Wed, 9 Dec 2009 11:25:18 +0000 (16:25 +0500)]
util.signal: Make kill() available on Solaris; really fixes #136.

14 years agomod_posix: Fix to not loop in SIGTERM either, but the same happens with SIGHUP (where...
Matthew Wild [Tue, 8 Dec 2009 01:24:16 +0000 (01:24 +0000)]
mod_posix: Fix to not loop in SIGTERM either, but the same happens with SIGHUP (where the same 'fix' can't be applied) - shall investigate tomorrow

14 years agoprosody: Report the current socket backend in use
Matthew Wild [Tue, 8 Dec 2009 01:23:22 +0000 (01:23 +0000)]
prosody: Report the current socket backend in use

14 years agonet.server_event: Add get_backend() method
Matthew Wild [Tue, 8 Dec 2009 01:22:54 +0000 (01:22 +0000)]
net.server_event: Add get_backend() method

14 years agonet.server_select: Add get_backend() method
Matthew Wild [Tue, 8 Dec 2009 01:22:09 +0000 (01:22 +0000)]
net.server_select: Add get_backend() method

14 years agomod_posix: Set empty SIGINT handler when a SIGINT is caught
Matthew Wild [Tue, 8 Dec 2009 01:16:24 +0000 (01:16 +0000)]
mod_posix: Set empty SIGINT handler when a SIGINT is caught

14 years agoprosody: Clarify and add some comments to describe what we're doing when and why
Matthew Wild [Tue, 8 Dec 2009 00:55:17 +0000 (00:55 +0000)]
prosody: Clarify and add some comments to describe what we're doing when and why

14 years agoRename closeallservers to closeall in the public API (same as net.server_select)...
Matthew Wild [Mon, 7 Dec 2009 19:26:50 +0000 (19:26 +0000)]
Rename closeallservers to closeall in the public API (same as net.server_select) and expose setquitting

14 years agonet.server_event: Add setquitting() function to be compatible with net.server_select
Matthew Wild [Mon, 7 Dec 2009 19:26:12 +0000 (19:26 +0000)]
net.server_event: Add setquitting() function to be compatible with net.server_select

14 years agonet.server_event: Fix closeallservers() to work correctly after the giant refactorizi...
Matthew Wild [Mon, 7 Dec 2009 19:25:16 +0000 (19:25 +0000)]
net.server_event: Fix closeallservers() to work correctly after the giant refactorizification

14 years agonet.server_event: Return "quitting" on loop exit to be compatible with net.server_sel...
Matthew Wild [Mon, 7 Dec 2009 18:42:31 +0000 (18:42 +0000)]
net.server_event: Return "quitting" on loop exit to be compatible with net.server_select, and give Prosody a way to know why the loop broke

14 years agomod_posix: Catch SIGINT
Matthew Wild [Mon, 7 Dec 2009 18:38:35 +0000 (18:38 +0000)]
mod_posix: Catch SIGINT

14 years agoMerge with trunk
Matthew Wild [Mon, 7 Dec 2009 18:32:50 +0000 (18:32 +0000)]
Merge with trunk

14 years agoprosody: Less strict matching for the magic 'interrupted' error
Matthew Wild [Mon, 7 Dec 2009 18:32:06 +0000 (18:32 +0000)]
prosody: Less strict matching for the magic 'interrupted' error

14 years agoprosodyctl: Nicer errors when addplugin command fails
Matthew Wild [Mon, 7 Dec 2009 18:30:57 +0000 (18:30 +0000)]
prosodyctl: Nicer errors when addplugin command fails

14 years agoutil.datamanager: Store data stores with no host in '_global' folder
Matthew Wild [Sun, 6 Dec 2009 00:35:06 +0000 (00:35 +0000)]
util.datamanager: Store data stores with no host in '_global' folder

14 years agomod_pep: Support item retrieval use cases
Paul Aurich [Sat, 5 Dec 2009 18:26:43 +0000 (10:26 -0800)]
mod_pep: Support item retrieval use cases

14 years agomod_pep: Allow storage of urn:xmpp:avatar:data node (payload only with base64 data)
Paul Aurich [Sat, 5 Dec 2009 17:43:53 +0000 (09:43 -0800)]
mod_pep: Allow storage of urn:xmpp:avatar:data node (payload only with base64 data)

14 years agoutil.pluginloader: Don't specify a host for the plugin data store (clever waqas...)
Matthew Wild [Sat, 5 Dec 2009 13:34:45 +0000 (13:34 +0000)]
util.pluginloader: Don't specify a host for the plugin data store (clever waqas...)

14 years agomod_compression: Tweak some log levels
Matthew Wild [Fri, 4 Dec 2009 19:04:03 +0000 (19:04 +0000)]
mod_compression: Tweak some log levels

14 years agocomponentmanager: Set ssl_ctx[_in] for components correctly, and use global SSL conte...
Matthew Wild [Fri, 4 Dec 2009 18:59:28 +0000 (18:59 +0000)]
componentmanager: Set ssl_ctx[_in] for components correctly, and use global SSL context if available

14 years agoprosody: Expose global_ssl_ctx through prosody object
Matthew Wild [Fri, 4 Dec 2009 18:57:54 +0000 (18:57 +0000)]
prosody: Expose global_ssl_ctx through prosody object

14 years agoDisable SSLv2 by default, it's known to be insecure.
Paul Aurich [Fri, 4 Dec 2009 17:48:08 +0000 (09:48 -0800)]
Disable SSLv2 by default, it's known to be insecure.

14 years agomod_proxy65: Strip trailing whitespace
Matthew Wild [Fri, 4 Dec 2009 14:41:53 +0000 (14:41 +0000)]
mod_proxy65: Strip trailing whitespace

14 years agoutil-src/Makefile: Clean up makefile (re-commit because MattJ shouldn't commit anythi...
Brian Cully [Fri, 4 Dec 2009 12:14:14 +0000 (12:14 +0000)]
util-src/Makefile: Clean up makefile (re-commit because MattJ shouldn't commit anything at 3AM)

14 years agonet.server_select, net.server_event: Convert to unix line endings from Windows
Matthew Wild [Fri, 4 Dec 2009 03:07:17 +0000 (03:07 +0000)]
net.server_select, net.server_event: Convert to unix line endings from Windows

14 years agoutil-src/Makefile: Clean up makefile, rename lsignal.c to signal.c
Brian Cully [Fri, 4 Dec 2009 03:02:25 +0000 (03:02 +0000)]
util-src/Makefile: Clean up makefile, rename lsignal.c to signal.c

14 years agoconfigure: fix typo of 'yes' -> 'yet'
Matthew Wild [Fri, 4 Dec 2009 02:51:43 +0000 (02:51 +0000)]
configure: fix typo of 'yes' -> 'yet'

14 years agoconfigure: Add 'linux' ostype and rename lflags to LDFLAGS to match expectations.
Brian Cully [Fri, 4 Dec 2009 02:51:03 +0000 (02:51 +0000)]
configure: Add 'linux' ostype and rename lflags to LDFLAGS to match expectations.

14 years agoRedo merge with Waqas' PBKDF2 optimizations.
Tobias Markmann [Thu, 3 Dec 2009 20:57:47 +0000 (21:57 +0100)]
Redo merge with Waqas' PBKDF2 optimizations.