Commit Graph

39 Commits (613c9b00c4e9073f74e53efaa1c31ae00a73eae4)

Author SHA1 Message Date
Matthew Wild 68a7de369b mod_s2s: Fix variable usage in check_auth_policy (thanks Florob) 13 years ago
Matthew Wild 4ceaa9d2f2 mod_s2s: Remove unused variable 13 years ago
Matthew Wild b8efb428ea mod_s2s: Add controls for certificate validation via the s2s_secure_auth option. Plugins can now return false from handling s2s-check-certificate to prevent connection establishment (s2sin+s2sout) 13 years ago
Matthew Wild 339e74b1b9 s2smanager, mod_s2s, mod_dialback, mod_saslauth: Move s2smanager.make_authenticated() to mod_s2s, and plugins now signal authentication via the s2s-authenticated event 13 years ago
Kim Alvefur ee9ef878c4 mod_s2s, mod_saslauth, mod_compression: Refactor to have common code for opening streams 13 years ago
Matthew Wild 740e6e69a2 mod_s2s: Do not include xmlns:db declaration in stream header if mod_dialback is not loaded 13 years ago
Kim Alvefur 404b1966b1 mod_s2s: Make sure host variable is reachable 13 years ago
Matthew Wild a32c615bc8 mod_s2s: Fire s2s-check-certificate event after validating a certificate, to allow plugins to override standard procedure 13 years ago
Matthew Wild f936068a62 mod_s2s, mod_dialback: Rename s2s-authenticate-legacy event to s2sout-authenticate-legacy for clarity. Also, hello! 13 years ago
Kim Alvefur 255bd1e311 mod_s2s: Don't try to close sessions that were destroyed before timeout 13 years ago
Kim Alvefur 3e2a8fbe1c prosody, mod_c2s, mod_s2s: Move closing of c2s and s2s sessions to respective plugins 13 years ago
Matthew Wild b9ac1b8b07 mod_s2s: Remove connection from sessions table as soon as we learn it is disconnected. Fixes a connection/session leak. 13 years ago
Kim Alvefur b7219c57f4 mod_s2s: Detect TLS compression 13 years ago
Waqas Hussain d9d38ef125 mod_{admin_telnet,c2s,component,http,net_multiplex,s2s}: Use module:provides() instead of module:add_item(). 14 years ago
Kim Alvefur ddd751aed9 mod_s2s: Check that an SRV reply isn't empty. 14 years ago
Kim Alvefur 9114e88ee0 mod_admin_adhoc, mod_admin_telnet, mod_bosh, mod_c2s, mod_component, mod_pep, mod_presence, mod_roster, mod_s2s: Import core_post_stanza from the global prosody table. 14 years ago
Matthew Wild be56306272 mod_s2s: Bump s2s_timeout to 90, to allow for the TCP timeout (in most cases) - this allows us to continue to try other targets 14 years ago
Matthew Wild 9931497619 mod_c2s, mod_s2s: Lower 'Disconnecting X' log messages from 'info' to 'debug' 14 years ago
Matthew Wild e89b006f03 Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages 14 years ago
Matthew Wild 0771b51658 mod_s2s: Adjust session:close() in line with mod_c2s's - fixes waiting for </stream:stream> if it has already been sent by the peer 14 years ago
Matthew Wild 9f24aa6cf8 mod_s2s/s2sout.lib: Use %s to insert strings into log messages instead of concatenation 14 years ago
Matthew Wild 6aa575f09b mod_s2s: Don't call ondisconnect manually, don't call conn:close() 3 times (!) and merge its logic and streamdisconnected into session_close - including now waiting for a reply </stream:stream> if there is the chance of further stanzas requiring delivery arriving. session.sends2s() on a half-closed stream returns false. 14 years ago
Matthew Wild 900a0add21 mod_s2s: Don't treat a stanza as delivered if session.sends2s() returns false 14 years ago
Matthew Wild 2057401904 mod_s2s: Make unauthed session timeout a little more aggressive... otherwise it's possible for sessions to slip under the net and never get killed off 14 years ago
Matthew Wild 07c9903d58 mod_s2s/s2sout.lib: Fix indentation 14 years ago
Matthew Wild fb3b789dca mod_s2s/s2sout.lib: Don't wait for both v4 and v6 DNS responses if we only send one (e.g. because v6 is disabled) 14 years ago
Kim Alvefur e6bf33e872 mod_s2s: Remove check for socket.tcp6() 14 years ago
Kim Alvefur bb98bf4a58 mod_s2s: Only do AAAA lookup if IPv6 is available, and A if IPv4 is available. 14 years ago
Matthew Wild 81cbf8c7d4 mod_s2s, s2sout.lib: Send stream header in onconnect() 14 years ago
Matthew Wild 417defb2ed mod_s2s: Only try next target if the stream didn't open 14 years ago
Matthew Wild 4a958b8611 mod_s2s: Remove TODO comment for SASL/TLS on s2s (thanks Florob) 14 years ago
Matthew Wild 0b4567a6f1 mod_s2s, mod_auth_anonymous, hostmanager: Remove disallow_s2s flag, deprecate the config option of the same name (disable mod_s2s instead), and add 'allow_anonymous_s2s' to separately control s2s for anonymous users 14 years ago
Matthew Wild 75d9d9e997 mod_s2s, s2smanager, mod_dialback: Move addition of session.send() on s2sin to after they are authenticated (thus from mod_s2s to s2smanager). Update mod_dialback to fire route/remote directly, as session.send() is no longer available for s2sin_unauthed. Fixes #291. 14 years ago
Kim Alvefur 3713488b27 s2smanager, mod_s2s: Move checking DNS timeout option to mod_s2s 14 years ago
Matthew Wild 8128ac8052 mod_s2s: Cache to_host and from_host in local variables, and use these instead of repeated lookups 14 years ago
Matthew Wild 706676c19a mod_s2s: Add session.send() only to incoming streams, and fire the route/remote event on the host (not global anymore) 14 years ago
Matthew Wild 9a9ff378e9 mod_s2s: Become a shared module (yay) 14 years ago
Matthew Wild d18c1ff0da Rename plugins/s2s/ to plugins/mod_s2s/ 14 years ago