prosody.git
14 years agoutil.pposix: Replace the unwieldy module table generation with luaL_register() call...
Matthew Wild [Sun, 10 Jan 2010 22:43:28 +0000 (22:43 +0000)]
util.pposix: Replace the unwieldy module table generation with luaL_register() call - side effect - it now sets the pposix global to the module table

14 years agomod_posix: Set umask to 'umask' from the config, or 027
Matthew Wild [Sun, 10 Jan 2010 22:15:15 +0000 (22:15 +0000)]
mod_posix: Set umask to 'umask' from the config, or 027

14 years agoprosodyctl: Set umask to protect data files, bump pposix dep to 0.3.2
Matthew Wild [Sun, 10 Jan 2010 22:14:44 +0000 (22:14 +0000)]
prosodyctl: Set umask to protect data files, bump pposix dep to 0.3.2

14 years agoutil.pposix: Add pposix.umask(), bump version to 0.3.2 (and do the same in mod_posix)
Matthew Wild [Sun, 10 Jan 2010 21:48:25 +0000 (21:48 +0000)]
util.pposix: Add pposix.umask(), bump version to 0.3.2 (and do the same in mod_posix)

14 years agoutil.pposix: Fix return type of lc_abort to shush compiler warning
Matthew Wild [Sun, 10 Jan 2010 20:21:48 +0000 (20:21 +0000)]
util.pposix: Fix return type of lc_abort to shush compiler warning

14 years agoutil.posix: Trailing whitespace
Matthew Wild [Sun, 10 Jan 2010 17:35:37 +0000 (17:35 +0000)]
util.posix: Trailing whitespace

14 years agonet.server: When libevent backend is in use, override signal.signal to use server...
Matthew Wild [Sun, 10 Jan 2010 15:26:36 +0000 (15:26 +0000)]
net.server: When libevent backend is in use, override signal.signal to use server.hook_signal

14 years agonet.server_event: Add server.hook_signal(signal_num, handler) to wrap libevent's...
Matthew Wild [Sun, 10 Jan 2010 15:25:19 +0000 (15:25 +0000)]
net.server_event: Add server.hook_signal(signal_num, handler) to wrap libevent's signal-catching interface

14 years agomod_posix: Remove the lines added to work around the util.signal loop bug
Matthew Wild [Sun, 10 Jan 2010 14:09:17 +0000 (14:09 +0000)]
mod_posix: Remove the lines added to work around the util.signal loop bug

14 years agoutil.signal: Restore the old debug hook earlier, just in case we receive another...
Matthew Wild [Sun, 10 Jan 2010 03:54:29 +0000 (03:54 +0000)]
util.signal: Restore the old debug hook earlier, just in case we receive another signal between clearing the signal queue and restoring it

14 years agoutil.signal: Update version in header, and author's email
Matthew Wild [Sun, 10 Jan 2010 00:31:38 +0000 (00:31 +0000)]
util.signal: Update version in header, and author's email

14 years agoutil.signal: Queue up multiple signals, instead of trampling on the previous debug...
Matthew Wild [Sun, 10 Jan 2010 00:28:48 +0000 (00:28 +0000)]
util.signal: Queue up multiple signals, instead of trampling on the previous debug hook (and never clearing our own)

14 years agoprosody: net_activate_ports: Accept strings as well as numbers for specifying ports
Matthew Wild [Sat, 9 Jan 2010 07:12:30 +0000 (07:12 +0000)]
prosody: net_activate_ports: Accept strings as well as numbers for specifying ports

14 years agoprosody: Read list of possible config extensions from configmanager, removes old...
Matthew Wild [Sat, 9 Jan 2010 07:03:48 +0000 (07:03 +0000)]
prosody: Read list of possible config extensions from configmanager, removes old TODO

14 years agoconfigmanager: Add parsers() method to return an array of supported config formats
Matthew Wild [Sat, 9 Jan 2010 06:59:47 +0000 (06:59 +0000)]
configmanager: Add parsers() method to return an array of supported config formats

14 years agos2smanager: Split sending of stream header into a :open_stream() method
Matthew Wild [Sat, 9 Jan 2010 06:53:23 +0000 (06:53 +0000)]
s2smanager: Split sending of stream header into a :open_stream() method

14 years agonet.dns: Make sure math.randomseed() gets passed an integer
Matthew Wild [Thu, 7 Jan 2010 01:26:01 +0000 (01:26 +0000)]
net.dns: Make sure math.randomseed() gets passed an integer

14 years agonet.server_select: Fix oops in last commit
Matthew Wild [Wed, 6 Jan 2010 16:20:56 +0000 (16:20 +0000)]
net.server_select: Fix oops in last commit

14 years agonet.server_select: Allow setting the logger using server.setlogger
Matthew Wild [Wed, 6 Jan 2010 16:16:23 +0000 (16:16 +0000)]
net.server_select: Allow setting the logger using server.setlogger

14 years agos2smanager: Allow new_outgoing() to create sessions without automatically connecting...
Matthew Wild [Mon, 4 Jan 2010 17:32:26 +0000 (17:32 +0000)]
s2smanager: Allow new_outgoing() to create sessions without automatically connecting them (set 3rd parameters to false)

14 years agos2smanager: Stamp a 'to' on the reply stream:stream. This makes prosody happy.
Paul Aurich [Sun, 3 Jan 2010 19:26:36 +0000 (11:26 -0800)]
s2smanager: Stamp a 'to' on the reply stream:stream.  This makes prosody happy.

14 years agos2smanager, hostmanager: Make dialback secrets per-host
Matthew Wild [Sun, 3 Jan 2010 18:55:42 +0000 (18:55 +0000)]
s2smanager, hostmanager: Make dialback secrets per-host

14 years agos2smanager: Trim trailing whitespace
Matthew Wild [Sun, 3 Jan 2010 18:37:03 +0000 (18:37 +0000)]
s2smanager: Trim trailing whitespace

14 years agomod_saslauth: Oops.
Paul Aurich [Sun, 3 Jan 2010 18:07:20 +0000 (10:07 -0800)]
mod_saslauth: Oops.

14 years agoMerge with Paul
Matthew Wild [Sun, 3 Jan 2010 17:54:26 +0000 (17:54 +0000)]
Merge with Paul

14 years agomod_muc/muc.lib: Use stanza:get_child() to locate MUC child element
Matthew Wild [Sun, 3 Jan 2010 17:53:54 +0000 (17:53 +0000)]
mod_muc/muc.lib: Use stanza:get_child() to locate MUC child element

14 years agomod_saslauth: Use module:get_option()
Paul Aurich [Sun, 3 Jan 2010 17:51:01 +0000 (09:51 -0800)]
mod_saslauth: Use module:get_option()

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

14 years agomod_saslauth: Add sasl_backend config parameter
Paul Aurich [Sun, 3 Jan 2010 04:03:24 +0000 (20:03 -0800)]
mod_saslauth: Add sasl_backend config parameter

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