prosody.git
14 years agoMerge 0.6->0.7
Matthew Wild [Wed, 24 Mar 2010 22:34:59 +0000 (22:34 +0000)]
Merge 0.6->0.7

14 years agomod_tls: Add s2s_allow_encryption option which, when set to false, disabled TLS for s2s
Matthew Wild [Wed, 24 Mar 2010 20:00:22 +0000 (20:00 +0000)]
mod_tls: Add s2s_allow_encryption option which, when set to false, disabled TLS for s2s

14 years agoprosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain [Tue, 23 Mar 2010 15:55:28 +0000 (20:55 +0500)]
prosody.cfg.lua.dist: Whitespace fix.

14 years agoprosody.cfg.lua.dist: Disable mod_privacy by default.
Waqas Hussain [Tue, 23 Mar 2010 15:48:57 +0000 (20:48 +0500)]
prosody.cfg.lua.dist: Disable mod_privacy by default.

14 years agousermanager: Return sane errors/results when Cyrus SASL is in use.
Waqas Hussain [Tue, 23 Mar 2010 15:24:56 +0000 (20:24 +0500)]
usermanager: Return sane errors/results when Cyrus SASL is in use.

14 years agomod_saslauth: Tidier code for SASL backend selection.
Waqas Hussain [Tue, 23 Mar 2010 15:17:46 +0000 (20:17 +0500)]
mod_saslauth: Tidier code for SASL backend selection.

14 years agomod_saslauth: Fail with an error when the requested SASL backend cannot be used.
Waqas Hussain [Tue, 23 Mar 2010 15:11:39 +0000 (20:11 +0500)]
mod_saslauth: Fail with an error when the requested SASL backend cannot be used.

14 years agoMerge 0.7->trunk
Matthew Wild [Mon, 22 Mar 2010 17:26:12 +0000 (17:26 +0000)]
Merge 0.7->trunk

14 years agoMerge 0.6->0.7
Matthew Wild [Mon, 22 Mar 2010 17:24:55 +0000 (17:24 +0000)]
Merge 0.6->0.7

14 years agoutil.windows: Convert from Windows line endings
Matthew Wild [Mon, 22 Mar 2010 17:16:28 +0000 (17:16 +0000)]
util.windows: Convert from Windows line endings

14 years agoUpdate copyright headers for 2010
Matthew Wild [Mon, 22 Mar 2010 17:06:15 +0000 (17:06 +0000)]
Update copyright headers for 2010

14 years agologgingmanager: Don't use non-standard format specifier to format the timestamp.
Waqas Hussain [Mon, 22 Mar 2010 16:58:38 +0000 (21:58 +0500)]
loggingmanager: Don't use non-standard format specifier to format the timestamp.

14 years agoutil.xmppstream: new() now returns a parser object
Matthew Wild [Mon, 22 Mar 2010 16:55:10 +0000 (16:55 +0000)]
util.xmppstream: new() now returns a parser object

14 years agoutil.xmppstream: Initial commit
Matthew Wild [Mon, 22 Mar 2010 16:24:49 +0000 (16:24 +0000)]
util.xmppstream: Initial commit

14 years agoMerge 0.7->trunk
Matthew Wild [Mon, 22 Mar 2010 15:05:35 +0000 (15:05 +0000)]
Merge 0.7->trunk

14 years agostanza_router: Don't send error replies for stanzas of type 'error' and 'result'...
Waqas Hussain [Mon, 22 Mar 2010 15:05:05 +0000 (15:05 +0000)]
stanza_router: Don't send error replies for stanzas of type 'error' and 'result' on unbound authenticated connections. [originally fa84451e9b35 in 0.6]

14 years agostanza_router: Allow non-jabber:client elements after auth, before bind. [originally...
Waqas Hussain [Mon, 22 Mar 2010 15:04:22 +0000 (15:04 +0000)]
stanza_router: Allow non-jabber:client elements after auth, before bind. [originally 2c538d4bde13 in 0.6]

14 years agoMerge 0.7->trunk
Matthew Wild [Mon, 22 Mar 2010 14:59:03 +0000 (14:59 +0000)]
Merge 0.7->trunk

14 years agosessionmanager, s2smanager: Add type of ?2s_destroyed to resting sessions (fixes...
Matthew Wild [Mon, 22 Mar 2010 14:58:25 +0000 (14:58 +0000)]
sessionmanager, s2smanager: Add type of ?2s_destroyed to resting sessions (fixes a logging traceback, thanks Flo)

14 years agoMerge 0.7->trunk
Matthew Wild [Mon, 22 Mar 2010 14:38:01 +0000 (14:38 +0000)]
Merge 0.7->trunk

14 years agomod_groups: Ignore whitespace on group member JID lines (thanks Luis!)
Matthew Wild [Mon, 22 Mar 2010 14:36:53 +0000 (14:36 +0000)]
mod_groups: Ignore whitespace on group member JID lines (thanks Luis!)

14 years agomod_groups: Fixes to make compatible with roster versioning - set version to 'true...
Matthew Wild [Mon, 22 Mar 2010 14:35:02 +0000 (14:35 +0000)]
mod_groups: Fixes to make compatible with roster versioning - set version to 'true' to indicate that the roster is not being versioned

14 years agomod_groups: Missed hunk from last commit, don't create the list of public group membe...
Matthew Wild [Mon, 22 Mar 2010 14:33:38 +0000 (14:33 +0000)]
mod_groups: Missed hunk from last commit, don't create the list of public group members unless necessary

14 years agomod_groups: Only create group lists when necessary (now we can reliably detect when...
Matthew Wild [Mon, 22 Mar 2010 14:32:23 +0000 (14:32 +0000)]
mod_groups: Only create group lists when necessary (now we can reliably detect when a user is in /any/ group, including public ones)

14 years agorostermanager: Don't bump the roster version if it is == true (ie. we are not version...
Matthew Wild [Mon, 22 Mar 2010 14:28:25 +0000 (14:28 +0000)]
rostermanager: Don't bump the roster version if it is == true (ie. we are not versioning the roster)

14 years agomod_roster: Tidier code for the roster versioning logic
Matthew Wild [Mon, 22 Mar 2010 01:54:22 +0000 (01:54 +0000)]
mod_roster: Tidier code for the roster versioning logic

14 years agomod_roster: Tidier code for the roster versioning logic
Matthew Wild [Mon, 22 Mar 2010 01:54:22 +0000 (01:54 +0000)]
mod_roster: Tidier code for the roster versioning logic

14 years agoMerge 0.7->trunk
Matthew Wild [Sat, 20 Mar 2010 14:17:51 +0000 (14:17 +0000)]
Merge 0.7->trunk

14 years ago.hgignore: Ignore prosody.version (thanks Florob)
Matthew Wild [Sat, 20 Mar 2010 14:16:33 +0000 (14:16 +0000)]
.hgignore: Ignore prosody.version (thanks Florob)

14 years agoMerge 0.7->trunk
Matthew Wild [Thu, 18 Mar 2010 10:11:11 +0000 (10:11 +0000)]
Merge 0.7->trunk

14 years agoutil.sasl_cyrus: Return invalid-mechanism instead of undefined-condition where approp...
Matthew Wild [Thu, 18 Mar 2010 10:10:37 +0000 (10:10 +0000)]
util.sasl_cyrus: Return invalid-mechanism instead of undefined-condition where appropriate

14 years agoutil.sasl_cyrus: Clarify some log messages and levels
Matthew Wild [Thu, 18 Mar 2010 10:05:35 +0000 (10:05 +0000)]
util.sasl_cyrus: Clarify some log messages and levels

14 years agoutil.sasl_cyrus: Protect the call to cyrussasl.server_new properly.
Paul Aurich [Thu, 18 Mar 2010 01:57:19 +0000 (18:57 -0700)]
util.sasl_cyrus: Protect the call to cyrussasl.server_new properly.

14 years agoMerge 0.7->trunk
Matthew Wild [Thu, 18 Mar 2010 01:44:55 +0000 (01:44 +0000)]
Merge 0.7->trunk

14 years agoMerge darkrain->trunk
Matthew Wild [Thu, 18 Mar 2010 01:31:37 +0000 (01:31 +0000)]
Merge darkrain->trunk

14 years agoMerge 0.7->trunk
Matthew Wild [Thu, 18 Mar 2010 01:27:31 +0000 (01:27 +0000)]
Merge 0.7->trunk

14 years agoMerge 0.6->0.7
Matthew Wild [Thu, 18 Mar 2010 01:25:50 +0000 (01:25 +0000)]
Merge 0.6->0.7

14 years agoMerge 0.6 with waqas
Matthew Wild [Thu, 18 Mar 2010 01:16:39 +0000 (01:16 +0000)]
Merge 0.6 with waqas

14 years agos2smanager: Remove the infamous 'as per RFC' log message entirely (it happens too...
Matthew Wild [Thu, 18 Mar 2010 01:15:25 +0000 (01:15 +0000)]
s2smanager: Remove the infamous 'as per RFC' log message entirely (it happens too often to be useful)

14 years agoutil.sasl_cyrus: If available, use a c14n callback for interoperability with bad...
Paul Aurich [Wed, 17 Mar 2010 22:29:14 +0000 (15:29 -0700)]
util.sasl_cyrus: If available, use a c14n callback for interoperability with bad clients.

Specifically, clients that specify an authzid 'user@domain.com' and authcid 'user'.

14 years agoutil.sasl_cyrus: If available, use a c14n callback for interoperability with bad...
Paul Aurich [Wed, 17 Mar 2010 22:29:14 +0000 (15:29 -0700)]
util.sasl_cyrus: If available, use a c14n callback for interoperability with bad clients.

Specifically, clients that specify an authzid 'user@domain.com' and authcid 'user'.

14 years agomod_saslauth: Add a sasl_realm option
Paul Aurich [Wed, 17 Mar 2010 22:29:14 +0000 (15:29 -0700)]
mod_saslauth: Add a sasl_realm option

14 years agomod_saslauth: Add a sasl_realm option
Paul Aurich [Wed, 17 Mar 2010 22:29:14 +0000 (15:29 -0700)]
mod_saslauth: Add a sasl_realm option

14 years agoMerge with 0.7
Matthew Wild [Wed, 17 Mar 2010 14:36:23 +0000 (14:36 +0000)]
Merge with 0.7

14 years agoMerge with 0.6 (into 0.7, namely mod_compression fixes)
Matthew Wild [Wed, 17 Mar 2010 14:28:26 +0000 (14:28 +0000)]
Merge ... 0.6 (into 0.7, namely mod_compression fixes)

14 years agoutil.cyrus_sasl: Pass the realm to Cyrus
Paul Aurich [Tue, 16 Mar 2010 06:02:16 +0000 (23:02 -0700)]
util.cyrus_sasl: Pass the realm to Cyrus

14 years agoutil.cyrus_sasl: Pass the realm to Cyrus
Paul Aurich [Tue, 16 Mar 2010 06:02:16 +0000 (23:02 -0700)]
util.cyrus_sasl: Pass the realm to Cyrus

14 years agoMUC: Added support for letting clients manage discussion history.
Waqas Hussain [Tue, 16 Mar 2010 22:16:43 +0000 (03:16 +0500)]
MUC: Added support for letting clients manage discussion history.

14 years agomod_compression: Improved and lowered log level of some logged messages.
Waqas Hussain [Mon, 15 Mar 2010 19:15:05 +0000 (00:15 +0500)]
mod_compression: Improved and lowered log level of some logged messages.

14 years agoMerge with 0.7 (and indirectly 0.6.2)
Matthew Wild [Mon, 15 Mar 2010 03:18:33 +0000 (03:18 +0000)]
Merge with 0.7 (and indirectly 0.6.2)

14 years agomod_compression: Return <setup-failed/> instead of <unsupported-method/> where applic...
Waqas Hussain [Tue, 9 Mar 2010 15:14:47 +0000 (20:14 +0500)]
mod_compression: Return <setup-failed/> instead of <unsupported-method/> where applicable.

14 years agomod_compression: More robust stanza processing.
Waqas Hussain [Tue, 9 Mar 2010 13:19:50 +0000 (18:19 +0500)]
mod_compression: More robust stanza processing.

14 years agomod_compression: Don't succeed after indicating a failure.
Waqas Hussain [Tue, 9 Mar 2010 13:11:45 +0000 (18:11 +0500)]
mod_compression: Don't succeed after indicating a failure.

14 years agomod_compression: Don't tell client compression succeeded when it didn't.
Waqas Hussain [Tue, 9 Mar 2010 12:52:18 +0000 (17:52 +0500)]
mod_compression: Don't tell client compression succeeded when it didn't.

14 years agomod_compression: Fixed various possible tracebacks in logging.
Waqas Hussain [Tue, 9 Mar 2010 12:43:18 +0000 (17:43 +0500)]
mod_compression: Fixed various possible tracebacks in logging.

14 years agoMerge with trunk
Matthew Wild [Fri, 5 Mar 2010 18:35:23 +0000 (18:35 +0000)]
Merge with trunk

14 years agoMerge with 0.7
Matthew Wild [Fri, 5 Mar 2010 18:35:02 +0000 (18:35 +0000)]
Merge with 0.7

14 years agonet.dns: Trailing whitespace
Matthew Wild [Fri, 5 Mar 2010 18:33:28 +0000 (18:33 +0000)]
net.dns: Trailing whitespace

14 years agonet.dns: More reliable parsing of resolv.conf - allow multiple nameserver IPs on...
Matthew Wild [Fri, 5 Mar 2010 18:15:08 +0000 (18:15 +0000)]
net.dns: More reliable parsing of resolv.conf - allow multiple nameserver IPs on one line (thanks dersd)

14 years agonet.server_select: Fix for traceback when a read returns an error and no data (thanks...
Matthew Wild [Fri, 5 Mar 2010 16:45:46 +0000 (16:45 +0000)]
net.server_select: Fix for traceback when a read returns an error and no data (thanks dersd)

14 years agocertmanager: Friendlier error reporting on OpenWRT and other cases where we don't...
Matthew Wild [Fri, 5 Mar 2010 15:00:11 +0000 (15:00 +0000)]
certmanager: Friendlier error reporting on OpenWRT and other cases where we don't understand the OpenSSL error

14 years agocertmanager: Fix nil global access (thanks Marc)
Matthew Wild [Fri, 5 Mar 2010 14:49:56 +0000 (14:49 +0000)]
certmanager: Fix nil global access (thanks Marc)

14 years agoMerge 0.6.2/waqas with 0.6.2/MattJ
Matthew Wild [Wed, 3 Mar 2010 22:05:05 +0000 (22:05 +0000)]
Merge 0.6.2/waqas with 0.6.2/MattJ

14 years agonet.xmppcomponent_listener: Don't remove 'log' and 'close' from sessions when destroy...
Matthew Wild [Sun, 14 Mar 2010 03:07:05 +0000 (03:07 +0000)]
net.xmppcomponent_listener: Don't remove 'log' and 'close' from sessions when destroying, and set destroyed = true

14 years agonet.xmppcomponent_listener: Log invalid XML received from components (as we already...
Matthew Wild [Sun, 14 Mar 2010 03:06:19 +0000 (03:06 +0000)]
net.xmppcomponent_listener: Log invalid XML received from components (as we already do for c2s/s2s)

14 years agonet.xmppcomponent_listener: Don't allow closing a session that has already been destroyed
Matthew Wild [Sun, 14 Mar 2010 03:05:43 +0000 (03:05 +0000)]
net.xmppcomponent_listener: Don't allow closing a session that has already been destroyed

14 years agonet.xmppcomponent_listener: Close component sessions on receiving a </stream:stream>
Matthew Wild [Sun, 14 Mar 2010 03:04:51 +0000 (03:04 +0000)]
net.xmppcomponent_listener: Close component sessions on receiving a </stream:stream>

14 years agonet.xmppcomponent_listener: Don't handle stream errors from component sessions that...
Matthew Wild [Sun, 14 Mar 2010 03:04:04 +0000 (03:04 +0000)]
net.xmppcomponent_listener: Don't handle stream errors from component sessions that have already been destroyed

14 years agonet.xmppcomponent_listener: Fix to correctly handle stream errors from components
Matthew Wild [Sun, 14 Mar 2010 03:03:02 +0000 (03:03 +0000)]
net.xmppcomponent_listener: Fix to correctly handle stream errors from components

14 years agonet.xmppclient_listener: Fix to correctly handle stream errors from clients
Matthew Wild [Sun, 14 Mar 2010 03:01:00 +0000 (03:01 +0000)]
net.xmppclient_listener: Fix to correctly handle stream errors from clients

14 years agosessionmanager: Don't re-destroy destroyed sessions
Matthew Wild [Sun, 14 Mar 2010 02:59:41 +0000 (02:59 +0000)]
sessionmanager: Don't re-destroy destroyed sessions

14 years agosessionmanager: Return stream error when incoming stream header is missing 'to' attribute
Matthew Wild [Sun, 14 Mar 2010 02:59:16 +0000 (02:59 +0000)]
sessionmanager: Return stream error when incoming stream header is missing 'to' attribute

14 years agosessionmanager: Add close method to resting sessions
Matthew Wild [Sun, 14 Mar 2010 02:58:11 +0000 (02:58 +0000)]
sessionmanager: Add close method to resting sessions

14 years agos2smanager: Don't re-destroy destroyed sessions
Matthew Wild [Sun, 14 Mar 2010 02:57:22 +0000 (02:57 +0000)]
s2smanager: Don't re-destroy destroyed sessions

14 years agos2smanager: Add open_stream and close methods to resting sessions
Matthew Wild [Sun, 14 Mar 2010 02:56:57 +0000 (02:56 +0000)]
s2smanager: Add open_stream and close methods to resting sessions

14 years agosessionmanager, s2smanager: Close session on </stream:stream>
Matthew Wild [Thu, 11 Mar 2010 01:04:19 +0000 (01:04 +0000)]
sessionmanager, s2smanager: Close session on </stream:stream>

14 years agosessionmanager, s2smanager: Destroyed sessions are now simply resting (not dead)...
Matthew Wild [Mon, 8 Mar 2010 02:13:41 +0000 (02:13 +0000)]
sessionmanager, s2smanager: Destroyed sessions are now simply resting (not dead) until they are collected - prevents a whole class of tracebacks

14 years agonet.xmppserver_listener: Clarify log message (for nil/false)
Matthew Wild [Sat, 6 Mar 2010 18:45:09 +0000 (18:45 +0000)]
net.xmppserver_listener: Clarify log message (for nil/false)

14 years agoMerge 0.6.2/waqas with 0.6.2/MattJ
Matthew Wild [Wed, 3 Mar 2010 22:05:05 +0000 (22:05 +0000)]
Merge 0.6.2/waqas with 0.6.2/MattJ

14 years agostanza_router: Don't send error replies for stanzas of type 'error' and 'result'...
Waqas Hussain [Wed, 3 Mar 2010 21:22:45 +0000 (02:22 +0500)]
stanza_router: Don't send error replies for stanzas of type 'error' and 'result' on unbound authenticated connections.

14 years agostanza_router: Allow non-jabber:client elements after auth, before bind.
Waqas Hussain [Wed, 3 Mar 2010 21:20:17 +0000 (02:20 +0500)]
stanza_router: Allow non-jabber:client elements after auth, before bind.

14 years agomod_offline: Convert to Unix line endings.
Waqas Hussain [Tue, 2 Mar 2010 09:08:32 +0000 (14:08 +0500)]
mod_offline: Convert to Unix line endings.

14 years agoMerge with 0.7
Matthew Wild [Mon, 1 Mar 2010 21:03:17 +0000 (21:03 +0000)]
Merge with 0.7

14 years agoutil.sasl: Fixed a nil global access.
Waqas Hussain [Mon, 1 Mar 2010 19:51:27 +0000 (00:51 +0500)]
util.sasl: Fixed a nil global access.

14 years agoutil.stanza: Fixed nil global accesses.
Waqas Hussain [Mon, 1 Mar 2010 19:50:54 +0000 (00:50 +0500)]
util.stanza: Fixed nil global accesses.

14 years agocertmanager: Fix global access
Matthew Wild [Mon, 1 Mar 2010 18:52:47 +0000 (18:52 +0000)]
certmanager: Fix global access

14 years agonet.server_select: Fix typo
Matthew Wild [Mon, 1 Mar 2010 18:47:03 +0000 (18:47 +0000)]
net.server_select: Fix typo

14 years agonet.server_event: Fix some global accesses
Matthew Wild [Mon, 1 Mar 2010 18:46:37 +0000 (18:46 +0000)]
net.server_event: Fix some global accesses

14 years agoMerge with 0.7
Matthew Wild [Mon, 1 Mar 2010 18:08:52 +0000 (18:08 +0000)]
Merge with 0.7

14 years agomod_proxy65: Fix for old-style closing of connections (another source of tracebacks...
Matthew Wild [Mon, 1 Mar 2010 18:07:37 +0000 (18:07 +0000)]
mod_proxy65: Fix for old-style closing of connections (another source of tracebacks with libevent enabled)

14 years agonet.server_select: Fix calling method of some handler.close()s
Matthew Wild [Mon, 1 Mar 2010 18:06:54 +0000 (18:06 +0000)]
net.server_select: Fix calling method of some handler.close()s

14 years agoMerge with 0.7
Matthew Wild [Mon, 1 Mar 2010 16:45:49 +0000 (16:45 +0000)]
Merge with 0.7

14 years agonet.server_event: Improve and fix potential traceback in logging of new incoming...
Matthew Wild [Mon, 1 Mar 2010 16:45:13 +0000 (16:45 +0000)]
net.server_event: Improve and fix potential traceback in logging of new incoming connections

14 years agoMerge with 0.7
Matthew Wild [Mon, 1 Mar 2010 16:23:51 +0000 (16:23 +0000)]
Merge with 0.7

14 years agomod_saslauth: Add FIXME to remind myself to fix this as soon as I have time
Matthew Wild [Mon, 1 Mar 2010 16:23:26 +0000 (16:23 +0000)]
mod_saslauth: Add FIXME to remind myself to fix this as soon as I have time

14 years agoMerge with 0.7
Matthew Wild [Mon, 1 Mar 2010 16:04:35 +0000 (16:04 +0000)]
Merge with 0.7

14 years agoMerge with 0.7/waqas
Matthew Wild [Mon, 1 Mar 2010 16:03:37 +0000 (16:03 +0000)]
Merge with 0.7/waqas

14 years agomod_saslauth: Unlock globals while loading cyrus
Matthew Wild [Mon, 1 Mar 2010 16:02:59 +0000 (16:02 +0000)]
mod_saslauth: Unlock globals while loading cyrus

14 years agoMerge with 0.7
Matthew Wild [Mon, 1 Mar 2010 16:01:09 +0000 (16:01 +0000)]
Merge with 0.7

14 years agoutil.sasl_cyrus: Ensure the mechanisms table is available after a failed auth attempt.
Waqas Hussain [Mon, 1 Mar 2010 13:37:47 +0000 (18:37 +0500)]
util.sasl_cyrus: Ensure the mechanisms table is available after a failed auth attempt.