prosody.git
14 years agomod_presence: Acknowledge subscription requests by responding with an unavailable...
Waqas Hussain [Sun, 22 Nov 2009 16:45:31 +0000 (21:45 +0500)]
mod_presence: Acknowledge subscription requests by responding with an unavailable presence.

14 years agosessionmanager: Added function send_to_interested_resources().
Waqas Hussain [Sun, 22 Nov 2009 16:41:09 +0000 (21:41 +0500)]
sessionmanager: Added function send_to_interested_resources().

14 years agosessionmanager: Fixed and cleaned function send_to_available_resources(). The 'to...
Waqas Hussain [Sun, 22 Nov 2009 16:40:01 +0000 (21:40 +0500)]
sessionmanager: Fixed and cleaned function send_to_available_resources(). The 'to' attribute for presence subscription stanzas is now preserved.

14 years agologgingmanager: Explicitly flush log messages if the __FLUSH_LOG environment variable...
Waqas Hussain [Sun, 22 Nov 2009 16:33:41 +0000 (21:33 +0500)]
loggingmanager: Explicitly flush log messages if the __FLUSH_LOG environment variable is defined (workaround for MSVCRT buffering piped output).

14 years agomod_proxy65: Update for new net.server API, untested
Matthew Wild [Sun, 22 Nov 2009 15:06:30 +0000 (15:06 +0000)]
mod_proxy65: Update for new net.server API, untested

14 years agomod_proxy65: Import from prosody-modules, thanks Ephraim :)
Matthew Wild [Sun, 22 Nov 2009 14:58:09 +0000 (14:58 +0000)]
mod_proxy65: Import from prosody-modules, thanks Ephraim :)

14 years agonet.server: Add some comments to explain to waqas how it all works :)
Matthew Wild [Sun, 22 Nov 2009 14:42:56 +0000 (14:42 +0000)]
net.server: Add some comments to explain to waqas how it all works :)

14 years agoxmppcomponent_listener: Use new API for writing to components, fixes traceback (thank...
Matthew Wild [Sun, 22 Nov 2009 13:47:24 +0000 (13:47 +0000)]
xmppcomponent_listener: Use new API for writing to components, fixes traceback (thanks Tobias)

14 years agos2smanager: Fix syntax error introduced in merge
Matthew Wild [Sun, 22 Nov 2009 04:53:02 +0000 (04:53 +0000)]
s2smanager: Fix syntax error introduced in merge

14 years agoMerge with trunk
Matthew Wild [Sun, 22 Nov 2009 04:50:42 +0000 (04:50 +0000)]
Merge with trunk

14 years agostanza_router: Don't log full stanzas destined for s2s
Matthew Wild [Sun, 22 Nov 2009 04:46:48 +0000 (04:46 +0000)]
stanza_router: Don't log full stanzas destined for s2s

14 years agonet.server_select: Bring up to date to new common connection API
Matthew Wild [Sun, 22 Nov 2009 04:45:13 +0000 (04:45 +0000)]
net.server_select: Bring up to date to new common connection API

14 years agonet.httpserver, net.http: Update for new net.server API (untested)
Matthew Wild [Sun, 22 Nov 2009 04:44:26 +0000 (04:44 +0000)]
net.httpserver, net.http: Update for new net.server API (untested)

14 years ago*_listener: Update for new net.server API, specifically .listener -> .onincoming...
Matthew Wild [Sun, 22 Nov 2009 04:43:46 +0000 (04:43 +0000)]
*_listener: Update for new net.server API, specifically .listener -> .onincoming, .disconnect -> .ondisconnect

14 years agonet.adns: Update for new net.server API (doesn't work with libevent yet)
Matthew Wild [Sun, 22 Nov 2009 04:42:47 +0000 (04:42 +0000)]
net.adns: Update for new net.server API (doesn't work with libevent yet)

14 years agos2smanager: Update for new net.server API (s2s still doesn't work with libevent for...
Matthew Wild [Sun, 22 Nov 2009 04:42:03 +0000 (04:42 +0000)]
s2smanager: Update for new net.server API (s2s still doesn't work with libevent for other reasons)

14 years agonet.server_event: Comment accidentally uncommented vdebug()
Matthew Wild [Sun, 22 Nov 2009 04:09:57 +0000 (04:09 +0000)]
net.server_event: Comment accidentally uncommented vdebug()

14 years agonet.server_event: Handle and ignore 'wantread' error from receive(), treat as a timeout
Matthew Wild [Sun, 22 Nov 2009 04:08:11 +0000 (04:08 +0000)]
net.server_event: Handle and ignore 'wantread' error from receive(), treat as a timeout

14 years agonet.server_event: Remove premature non-optimisation
Matthew Wild [Sun, 22 Nov 2009 04:06:40 +0000 (04:06 +0000)]
net.server_event: Remove premature non-optimisation

14 years agonet.server_event: Fix moved line caused by Mercurial's crecord and my selective commits
Matthew Wild [Sun, 22 Nov 2009 04:06:00 +0000 (04:06 +0000)]
net.server_event: Fix moved line caused by Mercurial's crecord and my selective commits

14 years agonet.server_event: Obey nowriting/nointerface for locks in interface methods
Matthew Wild [Sun, 22 Nov 2009 04:04:04 +0000 (04:04 +0000)]
net.server_event: Obey nowriting/nointerface for locks in interface methods

14 years agonet.server_event: Use conn property for send/receive instead of caching, fixes trying...
Matthew Wild [Sun, 22 Nov 2009 03:58:37 +0000 (03:58 +0000)]
net.server_event: Use conn property for send/receive instead of caching, fixes trying to use original socket after SSL-wrapping

14 years agonet.server_event: Set startsslcallback property to nil when we're done handshaking...
Matthew Wild [Sun, 22 Nov 2009 03:55:48 +0000 (03:55 +0000)]
net.server_event: Set startsslcallback property to nil when we're done handshaking, otherwise we keep trying to repeat the handshake

14 years agonet.server_event: Add set_sslctx() method to connections
Matthew Wild [Sun, 22 Nov 2009 03:53:44 +0000 (03:53 +0000)]
net.server_event: Add set_sslctx() method to connections

14 years agonet.server_event: conn.usingssl -> conn._usingssl
Matthew Wild [Sun, 22 Nov 2009 03:53:07 +0000 (03:53 +0000)]
net.server_event: conn.usingssl -> conn._usingssl

14 years agonet.server_event: Use correct listener callbacks
Matthew Wild [Sun, 22 Nov 2009 03:51:31 +0000 (03:51 +0000)]
net.server_event: Use correct listener callbacks

14 years agonet.server_event: Small whitespace fixes
Matthew Wild [Sun, 22 Nov 2009 03:49:47 +0000 (03:49 +0000)]
net.server_event: Small whitespace fixes

14 years agonet.server_event: Correct a few instances of .sslctx to ._sslctx
Matthew Wild [Sun, 22 Nov 2009 03:48:04 +0000 (03:48 +0000)]
net.server_event: Correct a few instances of .sslctx to ._sslctx

14 years agonet.server_event: Call connection's onconnect, no need to pass closures around now
Matthew Wild [Sun, 22 Nov 2009 03:44:15 +0000 (03:44 +0000)]
net.server_event: Call connection's onconnect, no need to pass closures around now

14 years agonet.server_event: Use connection id in all relevant logging
Matthew Wild [Sun, 22 Nov 2009 03:42:45 +0000 (03:42 +0000)]
net.server_event: Use connection id in all relevant logging

14 years agonet.server_event: Define id property for connection objects, to aid logging
Matthew Wild [Sun, 22 Nov 2009 03:20:35 +0000 (03:20 +0000)]
net.server_event: Define id property for connection objects, to aid logging

14 years agonet.server_event: Define vdebug function for convenience
Matthew Wild [Sun, 22 Nov 2009 03:14:32 +0000 (03:14 +0000)]
net.server_event: Define vdebug function for convenience

14 years agoobjectmanager: Convert to unix line-endings
Matthew Wild [Sat, 21 Nov 2009 23:04:26 +0000 (23:04 +0000)]
objectmanager: Convert to unix line-endings

14 years agonet.server_event: Change to new standard addserver() syntax
Matthew Wild [Sat, 21 Nov 2009 17:23:51 +0000 (17:23 +0000)]
net.server_event: Change to new standard addserver() syntax

14 years agonet.server_select: Change addserver() parameters to be compatible with new standard...
Matthew Wild [Sat, 21 Nov 2009 17:19:57 +0000 (17:19 +0000)]
net.server_select: Change addserver() parameters to be compatible with new standard syntax

14 years agomod_tls: Switch to : syntax for connection methods
Matthew Wild [Sat, 21 Nov 2009 17:16:46 +0000 (17:16 +0000)]
mod_tls: Switch to : syntax for connection methods

14 years agoxmppclient_listener: Use : syntax for connection methods, to be compatible with new...
Matthew Wild [Sat, 21 Nov 2009 17:15:59 +0000 (17:15 +0000)]
xmppclient_listener: Use : syntax for connection methods, to be compatible with new server.lua

14 years agoxmppclient_listener: Switch to .onincoming listener method, to be compatible with...
Matthew Wild [Sat, 21 Nov 2009 17:14:59 +0000 (17:14 +0000)]
xmppclient_listener: Switch to .onincoming listener method, to be compatible with new server_event.lua

14 years agonet.server: Small fix for addtimer() compatibility code
Matthew Wild [Sat, 21 Nov 2009 17:13:21 +0000 (17:13 +0000)]
net.server: Small fix for addtimer() compatibility code

14 years agonet.connlisteners: Standardise on new syntax for addserver(), and clean up a bit
Matthew Wild [Sat, 21 Nov 2009 17:11:59 +0000 (17:11 +0000)]
net.connlisteners: Standardise on new syntax for addserver(), and clean up a bit

14 years agosessionmanager: Use : syntax for calling connection methods
Matthew Wild [Sat, 21 Nov 2009 17:07:22 +0000 (17:07 +0000)]
sessionmanager: Use : syntax for calling connection methods

14 years agos2smanager: Don't log full stanza when sending outwards
Matthew Wild [Sat, 21 Nov 2009 13:49:48 +0000 (13:49 +0000)]
s2smanager: Don't log full stanza when sending outwards

14 years agos2smanager: Don't tostring() the data before sending, sends2s already does this.
Matthew Wild [Sat, 21 Nov 2009 13:47:45 +0000 (13:47 +0000)]
s2smanager: Don't tostring() the data before sending, sends2s already does this.

14 years agomod_bosh: Don't log response XML
Matthew Wild [Sat, 21 Nov 2009 13:15:46 +0000 (13:15 +0000)]
mod_bosh: Don't log response XML

14 years agoutil.timer: Fix libevent timers (event.base doesn't exist...)
Matthew Wild [Sat, 21 Nov 2009 03:16:14 +0000 (03:16 +0000)]
util.timer: Fix libevent timers (event.base doesn't exist...)

14 years agonet.server_event: Export base as event_base
Matthew Wild [Sat, 21 Nov 2009 03:15:59 +0000 (03:15 +0000)]
net.server_event: Export base as event_base

14 years agonet.server_event: Comment overly verbose log message
Matthew Wild [Sat, 21 Nov 2009 02:41:09 +0000 (02:41 +0000)]
net.server_event: Comment overly verbose log message

14 years agoutil.timer: Use libevent for lightweight timers if available and configured (use_libe...
Matthew Wild [Sat, 21 Nov 2009 02:40:21 +0000 (02:40 +0000)]
util.timer: Use libevent for lightweight timers if available and configured (use_libevent option)

14 years agonet.server: New net.server to choose the appropriate library from server_select/serve...
Matthew Wild [Sat, 21 Nov 2009 02:39:08 +0000 (02:39 +0000)]
net.server: New net.server to choose the appropriate library from server_select/server_event based on the availability of luaevent and the use_libevent config option

14 years agonet.server: Rename to net.server_select
Matthew Wild [Sat, 21 Nov 2009 02:36:35 +0000 (02:36 +0000)]
net.server: Rename to net.server_select

14 years agonet.server_event: Remove redundant getid() function
Matthew Wild [Fri, 20 Nov 2009 23:24:41 +0000 (23:24 +0000)]
net.server_event: Remove redundant getid() function

14 years agonet.server_event: Initial commit of server_event.lua. Don't get too excited, it's...
Matthew Wild [Fri, 20 Nov 2009 22:58:56 +0000 (22:58 +0000)]
net.server_event: Initial commit of server_event.lua. Don't get too excited, it's not used at all yet, and is still incomplete :)

14 years agoFixing some typos.
Tobias Markmann [Fri, 20 Nov 2009 16:12:12 +0000 (17:12 +0100)]
Fixing some typos.

14 years agos2smanager: Fail outgoing s2s connection if hostname does not pass idna_to_ascii...
Matthew Wild [Fri, 20 Nov 2009 15:07:39 +0000 (15:07 +0000)]
s2smanager: Fail outgoing s2s connection if hostname does not pass idna_to_ascii(), thanks Flo + waqas

14 years agos2smanager: Queue db:verify unless we already sent a db:result (if we had then it...
Matthew Wild [Fri, 20 Nov 2009 04:39:54 +0000 (04:39 +0000)]
s2smanager: Queue db:verify unless we already sent a db:result (if we had then it can could a dialback deadlock). Also remove some redundant code which could cause a db:result to be sent while still negotiating features (e.g. TLS) and break things. Collectively these fix a 'random' s2s failure (usually with ejabberd for some reason) - resulting in an 'unbound prefix' XML error, or 'ssl handshake failure'. Was this commit message long enough? I think so.

14 years agoMerge with trunk.
Tobias Markmann [Thu, 19 Nov 2009 16:53:52 +0000 (17:53 +0100)]
Merge with trunk.

14 years agoReduce needed roundtrips during DIGEST-MD5 login.
Tobias Markmann [Thu, 19 Nov 2009 16:20:38 +0000 (17:20 +0100)]
Reduce needed roundtrips during DIGEST-MD5 login.

14 years agoAdding some human readable error messages.
Tobias Markmann [Thu, 19 Nov 2009 16:17:52 +0000 (17:17 +0100)]
Adding some human readable error messages.

14 years agoFail if username or password don't pass SASLprep.
Tobias Markmann [Thu, 19 Nov 2009 16:08:58 +0000 (17:08 +0100)]
Fail if username or password don't pass SASLprep.

14 years agoUse new cofig option reading API.
Tobias Markmann [Thu, 19 Nov 2009 15:44:37 +0000 (16:44 +0100)]
Use new cofig option reading API.

14 years agoAllow SASL PLAIN over unsecure connections when intended by admin.
Tobias Markmann [Thu, 19 Nov 2009 15:43:38 +0000 (16:43 +0100)]
Allow SASL PLAIN over unsecure connections when intended by admin.

14 years agoTypo.
Tobias Markmann [Thu, 19 Nov 2009 14:29:09 +0000 (15:29 +0100)]
Typo.

14 years agoHandle , and = in usernames for SCRAM.
Tobias Markmann [Wed, 18 Nov 2009 23:04:14 +0000 (00:04 +0100)]
Handle , and = in usernames for SCRAM.

14 years agoProvide SASL PLAIN mechanism only if TLS is active.
Tobias Markmann [Wed, 18 Nov 2009 22:26:35 +0000 (23:26 +0100)]
Provide SASL PLAIN mechanism only if TLS is active.

14 years agoCleaning up.
Tobias Markmann [Wed, 18 Nov 2009 22:25:27 +0000 (23:25 +0100)]
Cleaning up.

14 years agoTidying up.
Tobias Markmann [Wed, 18 Nov 2009 21:59:43 +0000 (22:59 +0100)]
Tidying up.

14 years agoEnable restriction of supported mechanisms in the SASL library.
Tobias Markmann [Wed, 18 Nov 2009 21:56:50 +0000 (22:56 +0100)]
Enable restriction of supported mechanisms in the SASL library.

14 years agoSASLprep authentication and password in SASL PLAIN implementation.
Tobias Markmann [Wed, 18 Nov 2009 21:02:32 +0000 (22:02 +0100)]
SASLprep authentication and password in SASL PLAIN implementation.

14 years agoSASLprep usernames and passwords.
Tobias Markmann [Wed, 18 Nov 2009 10:59:50 +0000 (11:59 +0100)]
SASLprep usernames and passwords.

14 years agoutil.sasl: Add COMPAT comment
Matthew Wild [Wed, 18 Nov 2009 03:35:42 +0000 (03:35 +0000)]
util.sasl: Add COMPAT comment

14 years agomod_console: Moved activation of the console port from the main file to mod_console.
Waqas Hussain [Wed, 18 Nov 2009 03:30:03 +0000 (08:30 +0500)]
mod_console: Moved activation of the console port from the main file to mod_console.

14 years agoprosody.net_activate_ports: Slightly refactored and definition moved to before module...
Waqas Hussain [Wed, 18 Nov 2009 03:26:43 +0000 (08:26 +0500)]
prosody.net_activate_ports: Slightly refactored and definition moved to before modules are loaded.

14 years agomod_register: Log a debug message when a session's IP is not available.
Waqas Hussain [Wed, 18 Nov 2009 01:23:41 +0000 (06:23 +0500)]
mod_register: Log a debug message when a session's IP is not available.

14 years agomod_bosh: Set session.ip for BOSH sessions.
Waqas Hussain [Wed, 18 Nov 2009 01:22:52 +0000 (06:22 +0500)]
mod_bosh: Set session.ip for BOSH sessions.

14 years agoutil.sasl: Added compatibility workaround for jwchat sending an encoded trailing...
Waqas Hussain [Wed, 18 Nov 2009 01:21:59 +0000 (06:21 +0500)]
util.sasl: Added compatibility workaround for jwchat sending an encoded trailing '\0' in SASL responses.

14 years agonet.dns: Be more strict about the records we cache
Matthew Wild [Wed, 18 Nov 2009 01:09:09 +0000 (01:09 +0000)]
net.dns: Be more strict about the records we cache

14 years agonet.dns: Be more strict about checking the DNS replies we receive
Matthew Wild [Wed, 18 Nov 2009 01:05:38 +0000 (01:05 +0000)]
net.dns: Be more strict about checking the DNS replies we receive

14 years agoMaking interop with libpurple. (Thanks darkrain).
Tobias Markmann [Tue, 17 Nov 2009 21:39:18 +0000 (22:39 +0100)]
Making interop with libpurple. (Thanks darkrain).

14 years agoAdd check for forbidden char sequences in validate_username().
Tobias Markmann [Tue, 17 Nov 2009 10:31:59 +0000 (11:31 +0100)]
Add check for forbidden char sequences in validate_username().

14 years agoCompleted SCRAM-SHA-1 implementation to a ready-to-test state.
Tobias Markmann [Tue, 17 Nov 2009 10:03:54 +0000 (11:03 +0100)]
Completed SCRAM-SHA-1 implementation to a ready-to-test state.

14 years agoAdded missing require for generate_uuid.
Tobias Markmann [Tue, 17 Nov 2009 08:33:15 +0000 (09:33 +0100)]
Added missing require for generate_uuid.

14 years agoInitial commit of SCRAM SASL mechanism.
Tobias Markmann [Mon, 16 Nov 2009 23:56:41 +0000 (00:56 +0100)]
Initial commit of SCRAM SASL mechanism.

14 years agoMerge with sasl branch.
Tobias Markmann [Mon, 16 Nov 2009 20:43:57 +0000 (21:43 +0100)]
Merge with sasl branch.

14 years agoAdding a note for possible round trip savings.
Tobias Markmann [Fri, 13 Nov 2009 13:31:03 +0000 (14:31 +0100)]
Adding a note for possible round trip savings.

14 years agoAdding support for digest-md5 profile in DIGEST-MD5 implementation.
Tobias Markmann [Fri, 13 Nov 2009 10:24:22 +0000 (11:24 +0100)]
Adding support for digest-md5 profile in DIGEST-MD5 implementation.

14 years agoChange of the digest-md5 profile.
Tobias Markmann [Fri, 13 Nov 2009 10:21:21 +0000 (11:21 +0100)]
Change of the digest-md5 profile.

14 years agoBroken DIGEST-MD5 client support again.
Tobias Markmann [Fri, 13 Nov 2009 10:10:06 +0000 (11:10 +0100)]
Broken DIGEST-MD5 client support again.

14 years agoAdd support for plain profile in digest-md5 implementation.
Tobias Markmann [Fri, 13 Nov 2009 09:54:17 +0000 (10:54 +0100)]
Add support for plain profile in digest-md5 implementation.

14 years agoGetting PLAIN mechanism work with the new API.
Tobias Markmann [Fri, 13 Nov 2009 08:21:19 +0000 (09:21 +0100)]
Getting PLAIN mechanism work with the new API.

14 years agoutil.sasl: Improved a log message.
Waqas Hussain [Fri, 13 Nov 2009 01:29:37 +0000 (06:29 +0500)]
util.sasl: Improved a log message.

14 years agoutil.sasl: Allow authzid=username (for compatibility with Smack's non-compliant behav...
Waqas Hussain [Fri, 13 Nov 2009 01:10:46 +0000 (06:10 +0500)]
util.sasl: Allow authzid=username (for compatibility with Smack's non-compliant behavior).

14 years agoutil.sasl: Return proper error when client provides authzid.
Waqas Hussain [Thu, 12 Nov 2009 23:24:17 +0000 (04:24 +0500)]
util.sasl: Return proper error when client provides authzid.

14 years agoMove each mechanism in an own file.
Tobias Markmann [Thu, 12 Nov 2009 20:57:37 +0000 (21:57 +0100)]
Move each mechanism in an own file.

14 years agoChanged separator between attribute names and prefixes from '|' to '\1' (optimization...
Waqas Hussain [Thu, 12 Nov 2009 08:42:44 +0000 (13:42 +0500)]
Changed separator between attribute names and prefixes from '|' to '\1' (optimization and cleanup).

14 years agonet.connlisteners: Log an error when a listener fails to load.
Waqas Hussain [Thu, 12 Nov 2009 08:34:38 +0000 (13:34 +0500)]
net.connlisteners: Log an error when a listener fails to load.

14 years agocomponentmanager: Improved logging for stanzas being bounced for unavailable components.
Waqas Hussain [Thu, 12 Nov 2009 08:33:46 +0000 (13:33 +0500)]
componentmanager: Improved logging for stanzas being bounced for unavailable components.

14 years agomod_posix: Log warning when no_daemonize is used, and instruct on how to update config
Matthew Wild [Sun, 8 Nov 2009 15:25:03 +0000 (15:25 +0000)]
mod_posix: Log warning when no_daemonize is used, and instruct on how to update config

14 years agomod_posix: Switch config option to 'daemonize', fall back to 'no_daemonize' if not...
Matthew Wild [Sun, 8 Nov 2009 15:10:44 +0000 (15:10 +0000)]
mod_posix: Switch config option to 'daemonize', fall back to 'no_daemonize' if not set, default behaviour remains the same... daemonize if mod_posix is loaded

14 years agomodulemanager: api:get_option(): Handle correctly option values of boolean false...
Matthew Wild [Sun, 8 Nov 2009 15:09:11 +0000 (15:09 +0000)]
modulemanager: api:get_option(): Handle correctly option values of boolean false, don't assume value unset

14 years agoMerge with trunk
Matthew Wild [Fri, 6 Nov 2009 23:56:10 +0000 (23:56 +0000)]
Merge with trunk