prosody.git
15 years agoUse a stanza for c2s stream features instead of an array of strings. Removes a FIXME.
Matthew Wild [Thu, 20 Nov 2008 01:33:25 +0000 (01:33 +0000)]
Use a stanza for c2s stream features instead of an array of strings. Removes a FIXME.

15 years agoLog number of open sessions on session creation
Matthew Wild [Thu, 20 Nov 2008 01:32:24 +0000 (01:32 +0000)]
Log number of open sessions on session creation

15 years agoRemove a debug print() from xmlhandlers
Matthew Wild [Thu, 20 Nov 2008 01:31:15 +0000 (01:31 +0000)]
Remove a debug print() from xmlhandlers

15 years agoRemove version=1.0 on s2s stream headers, again.
Matthew Wild [Thu, 20 Nov 2008 01:14:31 +0000 (01:14 +0000)]
Remove version=1.0 on s2s stream headers, again.

15 years agoRemove an old FIXME comment
Matthew Wild [Wed, 19 Nov 2008 23:25:04 +0000 (23:25 +0000)]
Remove an old FIXME comment

15 years agoFix the reversed to/from on the final db:result. Fixes M-Link and Gmail. Thanks dwd!!
Matthew Wild [Wed, 19 Nov 2008 23:18:12 +0000 (23:18 +0000)]
Fix the reversed to/from on the final db:result. Fixes M-Link and Gmail. Thanks dwd!!

15 years agoComments and logging fixes
Matthew Wild [Wed, 19 Nov 2008 22:50:37 +0000 (22:50 +0000)]
Comments and logging fixes

15 years agoSend version=1.0 again in s2s stream header
Matthew Wild [Wed, 19 Nov 2008 22:05:44 +0000 (22:05 +0000)]
Send version=1.0 again in s2s stream header

15 years agoFix for setting the correct host on the socket, seems to fix s2s with XCP
Matthew Wild [Wed, 19 Nov 2008 22:04:39 +0000 (22:04 +0000)]
Fix for setting the correct host on the socket, seems to fix s2s with XCP

15 years agoShow which session got disconnected in log message
Matthew Wild [Wed, 19 Nov 2008 22:03:39 +0000 (22:03 +0000)]
Show which session got disconnected in log message

15 years agoDon't error if the original s2s connection has closed before we get the dialback...
Matthew Wild [Wed, 19 Nov 2008 21:07:40 +0000 (21:07 +0000)]
Don't error if the original s2s connection has closed before we get the dialback result

15 years agoDon't send version 1.0. Who cares about Gmail?
Matthew Wild [Wed, 19 Nov 2008 05:34:00 +0000 (05:34 +0000)]
Don't send version 1.0. Who cares about Gmail?

15 years agoSend version=1.0 in s2s stream header. Send s2s stream:features when in 1.0 mode.
Matthew Wild [Wed, 19 Nov 2008 05:13:07 +0000 (05:13 +0000)]
Send version=1.0 in s2s stream header. Send s2s stream:features when in 1.0 mode.

15 years agoDon't attempt to auth connection unless stanzas are being sent across it
Matthew Wild [Wed, 19 Nov 2008 05:12:21 +0000 (05:12 +0000)]
Don't attempt to auth connection unless stanzas are being sent across it

15 years agoLog sent s2s stanzas
Matthew Wild [Wed, 19 Nov 2008 05:11:37 +0000 (05:11 +0000)]
Log sent s2s stanzas

15 years agoIncorrect function set as callback
Matthew Wild [Wed, 19 Nov 2008 05:10:42 +0000 (05:10 +0000)]
Incorrect function set as callback

15 years agoDon't error if streamopened/streamclosed callback is not specified for a session
Matthew Wild [Wed, 19 Nov 2008 05:10:16 +0000 (05:10 +0000)]
Don't error if streamopened/streamclosed callback is not specified for a session

15 years agoExtra checks before sending error replies to incoming stanzas
Matthew Wild [Wed, 19 Nov 2008 05:09:05 +0000 (05:09 +0000)]
Extra checks before sending error replies to incoming stanzas

15 years agoFix sending of unavailable presence on disconnect
Matthew Wild [Wed, 19 Nov 2008 05:07:52 +0000 (05:07 +0000)]
Fix sending of unavailable presence on disconnect

15 years agoDon't forget to escape XML in attributes. Thanks to the Postgres Q&A room on...
Matthew Wild [Wed, 19 Nov 2008 05:02:13 +0000 (05:02 +0000)]
Don't forget to escape XML in attributes. Thanks to the Postgres Q&A room on conference.jabber.org :)

15 years agoWe have SRV resolving \o/
Matthew Wild [Tue, 18 Nov 2008 22:41:04 +0000 (22:41 +0000)]
We have SRV resolving \o/

15 years agoSmall fix for servermanager
Matthew Wild [Tue, 18 Nov 2008 22:40:23 +0000 (22:40 +0000)]
Small fix for servermanager

15 years agoFix to prevent send retry when connection is already closed
Matthew Wild [Tue, 18 Nov 2008 22:16:06 +0000 (22:16 +0000)]
Fix to prevent send retry when connection is already closed

15 years ago*ahem* Yes, move along please... though really, quite a classic. :)
Matthew Wild [Tue, 18 Nov 2008 19:58:29 +0000 (19:58 +0000)]
*ahem* Yes, move along please... though really, quite a classic. :)

15 years agosession:disconnect() -> session:close() for consistency with other Lua APIs
Matthew Wild [Tue, 18 Nov 2008 19:44:54 +0000 (19:44 +0000)]
session:disconnect() -> session:close() for consistency with other Lua APIs

15 years agoRemove useless check for unavailable presence (which never exists)
Matthew Wild [Tue, 18 Nov 2008 19:40:04 +0000 (19:40 +0000)]
Remove useless check for unavailable presence (which never exists)

15 years agoQuite some changes, to:
Matthew Wild [Tue, 18 Nov 2008 17:52:33 +0000 (17:52 +0000)]
Quite some changes, to:

- Small logging fix for s2smanager
- Send a stream error if an incoming s2s connection is to an unrecognised hostname (fixes #11)
- init_xmlhandlers now takes a table of callbacks (includes changes to net/xmpp*_listener for this)
- Move sending of unavailable presence to where it should be, sessionmanager.destroy_session
- Fix sending of stream errors to wrong connection

15 years agos2s sessions can now be disconnected, with or without a stream error. Fixes #8
Matthew Wild [Tue, 18 Nov 2008 14:42:45 +0000 (14:42 +0000)]
s2s sessions can now be disconnected, with or without a stream error. Fixes #8

15 years agoAllow us to close client connections, with or without a stream error. Partially fixes...
Matthew Wild [Tue, 18 Nov 2008 05:13:29 +0000 (05:13 +0000)]
Allow us to close client connections, with or without a stream error. Partially fixes #8, we still need the same for s2s (though it should be almost a straight copy of the code, I'm too tired atm)

15 years agoFlush write queue before closing socket
Matthew Wild [Tue, 18 Nov 2008 05:06:50 +0000 (05:06 +0000)]
Flush write queue before closing socket

15 years agoFixed s2s manager's send queue to not store recieved stanza objects (as these can...
Waqas Hussain [Mon, 17 Nov 2008 13:53:13 +0000 (18:53 +0500)]
Fixed s2s manager's send queue to not store recieved stanza objects (as these can chnage after the send call)

15 years agoSend unsubscribe and unsubscribed on roster item delete, and broadcast available...
Waqas Hussain [Mon, 17 Nov 2008 08:51:47 +0000 (13:51 +0500)]
Send unsubscribe and unsubscribed on roster item delete, and broadcast available resources' presence in reply to pre-approved subscription request

15 years agoAdding logging for outbound presence broadcasts (changed it a bit)
Waqas Hussain [Mon, 17 Nov 2008 07:27:02 +0000 (12:27 +0500)]
Adding logging for outbound presence broadcasts (changed it a bit)

15 years agoAdding logging for outbound presence broadcasts
Waqas Hussain [Mon, 17 Nov 2008 07:21:21 +0000 (12:21 +0500)]
Adding logging for outbound presence broadcasts

15 years agoSecond fix for broadcasting presence of available resources to newly approved contact
Waqas Hussain [Mon, 17 Nov 2008 06:28:09 +0000 (11:28 +0500)]
Second fix for broadcasting presence of available resources to newly approved contact

15 years agoFix for broadcasting presence of available resources to newly approved contact
Waqas Hussain [Mon, 17 Nov 2008 05:24:47 +0000 (10:24 +0500)]
Fix for broadcasting presence of available resources to newly approved contact

15 years agoMoved presence subscription code from stanza_router to presencemanager
Waqas Hussain [Mon, 17 Nov 2008 05:15:04 +0000 (10:15 +0500)]
Moved presence subscription code from stanza_router to presencemanager

15 years agoMerge with waqas
Matthew Wild [Sun, 16 Nov 2008 00:30:13 +0000 (00:30 +0000)]
Merge with waqas

15 years agoFix for putting TLS in stream:features for connections already using TLS. Thanks...
Matthew Wild [Sun, 16 Nov 2008 00:29:15 +0000 (00:29 +0000)]
Fix for putting TLS in stream:features for connections already using TLS. Thanks to albert for spotting.

15 years agoFix logging in some cases for client disconnects
Matthew Wild [Sun, 16 Nov 2008 00:27:40 +0000 (00:27 +0000)]
Fix logging in some cases for client disconnects

15 years agoRemoved unused function send_to_session from sessionmanager (send_to_session replaced...
Waqas Hussain [Sun, 16 Nov 2008 00:06:38 +0000 (05:06 +0500)]
Removed unused function send_to_session from sessionmanager (send_to_session replaced by session.send)

15 years agoFixed mod_tls to use session.send for sending stanzas
Waqas Hussain [Sun, 16 Nov 2008 00:03:21 +0000 (05:03 +0500)]
Fixed mod_tls to use session.send for sending stanzas

15 years agoFixed servermanager to use session.send for sending stanzas
Waqas Hussain [Sun, 16 Nov 2008 00:02:15 +0000 (05:02 +0500)]
Fixed servermanager to use session.send for sending stanzas

15 years agoRemoved useless [[local send = require "core.sessionmanager".send_to_session]] from...
Waqas Hussain [Sat, 15 Nov 2008 23:52:11 +0000 (04:52 +0500)]
Removed useless [[local send = require "core.sessionmanager".send_to_session]] from mod_uptime and mod_version

15 years agoFixed mod_saslauth to use session.send for sending stanzas
Waqas Hussain [Sat, 15 Nov 2008 23:47:34 +0000 (04:47 +0500)]
Fixed mod_saslauth to use session.send for sending stanzas

15 years agoFixed sessionmanager to not send session in place of stream features...
Waqas Hussain [Sat, 15 Nov 2008 23:45:31 +0000 (04:45 +0500)]
Fixed sessionmanager to not send session in place of stream features...

15 years agoFixed mod_register to use session.send for sending stanzas
Waqas Hussain [Sat, 15 Nov 2008 23:42:03 +0000 (04:42 +0500)]
Fixed mod_register to use session.send for sending stanzas

15 years agoFixed mod_private to use session.send for sending stanzas
Waqas Hussain [Sat, 15 Nov 2008 23:39:48 +0000 (04:39 +0500)]
Fixed mod_private to use session.send for sending stanzas

15 years agoFixed sessionmanager to use appropriate method for sending stream features
Waqas Hussain [Sat, 15 Nov 2008 23:37:54 +0000 (04:37 +0500)]
Fixed sessionmanager to use appropriate method for sending stream features

15 years agoFixed mod_legacyauth to use session.send for sending stanzas
Waqas Hussain [Sat, 15 Nov 2008 23:36:34 +0000 (04:36 +0500)]
Fixed mod_legacyauth to use session.send for sending stanzas

15 years agoFix mod_vcard to use session.send for sending stanzas
Waqas Hussain [Sat, 15 Nov 2008 23:28:37 +0000 (04:28 +0500)]
Fix mod_vcard to use session.send for sending stanzas

15 years agoMerge with myself (!)
Matthew Wild [Sat, 15 Nov 2008 23:22:27 +0000 (23:22 +0000)]
Merge with myself (!)

15 years agoYou can never have too many tests
Matthew Wild [Sat, 15 Nov 2008 23:14:32 +0000 (23:14 +0000)]
You can never have too many tests

15 years agoWarn when subtest function does not exist
Matthew Wild [Sat, 15 Nov 2008 23:11:17 +0000 (23:11 +0000)]
Warn when subtest function does not exist

15 years agoIf iq child element has no xmlns, use parent's
Matthew Wild [Sat, 15 Nov 2008 23:10:41 +0000 (23:10 +0000)]
If iq child element has no xmlns, use parent's

15 years agoFix mod_roster to use session.send for sending stanzas
Matthew Wild [Sat, 15 Nov 2008 23:09:08 +0000 (23:09 +0000)]
Fix mod_roster to use session.send for sending stanzas

15 years agoMerge from waqas
Matthew Wild [Sat, 15 Nov 2008 22:29:24 +0000 (22:29 +0000)]
Merge from waqas

15 years agoCode cleanup for resource binding
Waqas Hussain [Sat, 15 Nov 2008 22:16:53 +0000 (03:16 +0500)]
Code cleanup for resource binding

15 years agoSmall fix for mod_version
Matthew Wild [Sat, 15 Nov 2008 22:07:31 +0000 (22:07 +0000)]
Small fix for mod_version

15 years agoUnused variables in mod_tls
Waqas Hussain [Sat, 15 Nov 2008 21:52:54 +0000 (02:52 +0500)]
Unused variables in mod_tls

15 years agoProviding some human readable error messages and some fixes.
Tobias Markmann [Sat, 15 Nov 2008 21:36:22 +0000 (22:36 +0100)]
Providing some human readable error messages and some fixes.

15 years agoMade SASL module fit the new interface.
Tobias Markmann [Sat, 15 Nov 2008 21:30:09 +0000 (22:30 +0100)]
Made SASL module fit the new interface.

15 years agoUsing md5.sum rather than hashes.md5 because we don't want hexadecimal
Waqas Hussain [Sat, 15 Nov 2008 21:28:32 +0000 (02:28 +0500)]
Using md5.sum rather than hashes.md5 because we don't want hexadecimal

15 years agomod_saslauth: Code cleanup
Waqas Hussain [Sat, 15 Nov 2008 21:27:22 +0000 (02:27 +0500)]
mod_saslauth: Code cleanup

15 years agobase64 encode the sasl responses
Waqas Hussain [Sat, 15 Nov 2008 21:10:01 +0000 (02:10 +0500)]
base64 encode the sasl responses

15 years agoStarted using realm in password hashing, and added support for error message replies...
Waqas Hussain [Sat, 15 Nov 2008 20:54:14 +0000 (01:54 +0500)]
Started using realm in password hashing, and added support for error message replies from sasl

15 years agoComment out DIGEST-MD5 until it is fully implemented
Matthew Wild [Sat, 15 Nov 2008 19:50:22 +0000 (19:50 +0000)]
Comment out DIGEST-MD5 until it is fully implemented

15 years agoMerge new SASL code from Tobias and Waqas
Matthew Wild [Sat, 15 Nov 2008 19:44:09 +0000 (19:44 +0000)]
Merge new SASL code from Tobias and Waqas

15 years agoFix logging of disconnect reason, and also sending of unavailable presence on disconnect
Matthew Wild [Sat, 15 Nov 2008 19:32:58 +0000 (19:32 +0000)]
Fix logging of disconnect reason, and also sending of unavailable presence on disconnect

15 years agoMerging with Waqas' code.
Tobias Markmann [Sat, 15 Nov 2008 19:28:49 +0000 (20:28 +0100)]
Merging with Waqas' code.

15 years agoSet username in a SASL object.
Tobias Markmann [Sat, 15 Nov 2008 19:28:09 +0000 (20:28 +0100)]
Set username in a SASL object.

15 years agoSet username on SASL success
Waqas Hussain [Sat, 15 Nov 2008 19:25:28 +0000 (00:25 +0500)]
Set username on SASL success

15 years agoFix routing of outbound iq stanzas
Matthew Wild [Sat, 15 Nov 2008 19:13:28 +0000 (19:13 +0000)]
Fix routing of outbound iq stanzas

15 years agoAdd tests for core.stanza_router
Matthew Wild [Sat, 15 Nov 2008 19:12:23 +0000 (19:12 +0000)]
Add tests for core.stanza_router

15 years agoAdd new logger for tests to use
Matthew Wild [Sat, 15 Nov 2008 19:11:38 +0000 (19:11 +0000)]
Add new logger for tests to use

15 years agoSome fixes for our test runner
Matthew Wild [Sat, 15 Nov 2008 19:05:01 +0000 (19:05 +0000)]
Some fixes for our test runner

15 years agoMerge with Waqas changes to mod_saslauth.
Tobias Markmann [Sat, 15 Nov 2008 18:25:51 +0000 (19:25 +0100)]
Merge with Waqas changes to mod_saslauth.

15 years agoMade PLAIN method in sasl.lua module follow new interface.
Tobias Markmann [Sat, 15 Nov 2008 18:23:55 +0000 (19:23 +0100)]
Made PLAIN method in sasl.lua module follow new interface.

15 years agomod_saslauth: Added base64 decoding, encoding check, and cleaned the code up.
Waqas Hussain [Sat, 15 Nov 2008 18:20:07 +0000 (23:20 +0500)]
mod_saslauth: Added base64 decoding, encoding check, and cleaned the code up.

15 years agoAdding some TODO for some security issue.
Tobias Markmann [Sat, 15 Nov 2008 18:12:05 +0000 (19:12 +0100)]
Adding some TODO for some security issue.

15 years agoMerging my new SASL code with Waqas' adjusted saslauth module.
Tobias Markmann [Sat, 15 Nov 2008 12:47:17 +0000 (13:47 +0100)]
Merging my new SASL code with Waqas' adjusted saslauth module.

15 years agomod_saslauth updated for digest-md5
Waqas Hussain [Sat, 15 Nov 2008 07:21:04 +0000 (12:21 +0500)]
mod_saslauth updated for digest-md5

15 years agoReturn registered host table when registering a component
Matthew Wild [Sat, 15 Nov 2008 04:28:41 +0000 (04:28 +0000)]
Return registered host table when registering a component

15 years agoLog how many queued stanzas we send
Waqas Hussain [Sat, 15 Nov 2008 03:38:25 +0000 (08:38 +0500)]
Log how many queued stanzas we send

15 years agoMerge from waqas
Matthew Wild [Sat, 15 Nov 2008 00:35:09 +0000 (00:35 +0000)]
Merge from waqas

15 years agoSome bugs fixed
Waqas Hussain [Sat, 15 Nov 2008 00:33:14 +0000 (05:33 +0500)]
Some bugs fixed

15 years agoUpdate hostname for identi.ca
Matthew Wild [Fri, 14 Nov 2008 20:30:24 +0000 (20:30 +0000)]
Update hostname for identi.ca

15 years agoRemove some old unused (and empty) functions from s2smanager
Matthew Wild [Fri, 14 Nov 2008 18:54:19 +0000 (18:54 +0000)]
Remove some old unused (and empty) functions from s2smanager

15 years agoOnly reply with errors if the stanza is not an error or a result (don't know how...
Matthew Wild [Fri, 14 Nov 2008 18:46:00 +0000 (18:46 +0000)]
Only reply with errors if the stanza is not an error or a result (don't know how much bandwidth this just cost me :) )

15 years agoUpdate rostermanager to use new logger
Matthew Wild [Fri, 14 Nov 2008 17:37:45 +0000 (17:37 +0000)]
Update rostermanager to use new logger

15 years agoA treat for Linux users ;)
Matthew Wild [Fri, 14 Nov 2008 16:03:33 +0000 (16:03 +0000)]
A treat for Linux users ;)

15 years agoFix outgoing s2s from components. Fixes #16
Matthew Wild [Fri, 14 Nov 2008 14:26:56 +0000 (14:26 +0000)]
Fix outgoing s2s from components. Fixes #16

15 years agoNow outgoing s2s sessions are associated with their from_host, fixes #15
Matthew Wild [Fri, 14 Nov 2008 02:54:56 +0000 (02:54 +0000)]
Now outgoing s2s sessions are associated with their from_host, fixes #15

15 years agoSome more logging fixes
Matthew Wild [Fri, 14 Nov 2008 02:41:37 +0000 (02:41 +0000)]
Some more logging fixes

15 years agoYep, s2s definitely works now. This is just a small fix for logging...
Matthew Wild [Fri, 14 Nov 2008 02:38:41 +0000 (02:38 +0000)]
Yep, s2s definitely works now. This is just a small fix for logging...

15 years agoI knew it ;) Fix sending error replies over s2s (though we shouldn't be error'ing...
Matthew Wild [Fri, 14 Nov 2008 02:33:20 +0000 (02:33 +0000)]
I knew it ;) Fix sending error replies over s2s (though we shouldn't be error'ing on stream:features anyway)

15 years agoPrint out the stanza also
Matthew Wild [Fri, 14 Nov 2008 02:23:43 +0000 (02:23 +0000)]
Print out the stanza also

15 years agoFix for detecting when we are routing a stanza to ourself (I'm sure this has somethin...
Matthew Wild [Fri, 14 Nov 2008 02:20:46 +0000 (02:20 +0000)]
Fix for detecting when we are routing a stanza to ourself (I'm sure this has something to do with you, waqas...)

15 years agoAnother small fix, for logging in s2smanager
Matthew Wild [Fri, 14 Nov 2008 02:12:08 +0000 (02:12 +0000)]
Another small fix, for logging in s2smanager

15 years agoAnother small fix, for logging in s2smanager
Matthew Wild [Fri, 14 Nov 2008 02:09:20 +0000 (02:09 +0000)]
Another small fix, for logging in s2smanager