prosody.git
15 years agoBumper commit for the new modulemanager API \o/ Updates all the modules, though some...
Matthew Wild [Thu, 27 Nov 2008 03:12:12 +0000 (03:12 +0000)]
Bumper commit for the new modulemanager API \o/ Updates all the modules, though some more changes may be in store.

15 years agoNice enhancement for logging output
Matthew Wild [Thu, 27 Nov 2008 03:06:29 +0000 (03:06 +0000)]
Nice enhancement for logging output

15 years agoRemoving servermanager... it is no longer used
Matthew Wild [Thu, 27 Nov 2008 02:43:39 +0000 (02:43 +0000)]
Removing servermanager... it is no longer used

15 years agoLog reason for connection failure
Matthew Wild [Wed, 26 Nov 2008 23:47:23 +0000 (23:47 +0000)]
Log reason for connection failure

15 years ago(Basic) IDNA and SRV fallback support
Matthew Wild [Wed, 26 Nov 2008 23:44:30 +0000 (23:44 +0000)]
(Basic) IDNA and SRV fallback support

15 years agoFix to make a global configmanager instance
Matthew Wild [Wed, 26 Nov 2008 23:12:05 +0000 (23:12 +0000)]
Fix to make a global configmanager instance

15 years agoFix for hashes.c and encodings.c to rename luaopen for util_*
Matthew Wild [Wed, 26 Nov 2008 22:45:33 +0000 (22:45 +0000)]
Fix for hashes.c and encodings.c to rename luaopen for util_*

15 years agoFix a waqas copy/paste error. It was my fault again apparently.
Matthew Wild [Wed, 26 Nov 2008 22:18:26 +0000 (22:18 +0000)]
Fix a waqas copy/paste error. It was my fault again apparently.

15 years agoMerge from waqas
Matthew Wild [Wed, 26 Nov 2008 21:49:17 +0000 (21:49 +0000)]
Merge from waqas

15 years agoAdded options to limit the number of resources and for handling of resource conflicts
Waqas Hussain [Wed, 26 Nov 2008 21:48:08 +0000 (02:48 +0500)]
Added options to limit the number of resources and for handling of resource conflicts
 - core.max_resources: defaults to 10
 - core.conflict_resolve: can be "random", "increment", "kick_new" and "kick_old" (default)

15 years agoUpdate mod_selftests to use the hosts on http://xmpp.org/interop/servers.shtml
Matthew Wild [Wed, 26 Nov 2008 18:25:03 +0000 (18:25 +0000)]
Update mod_selftests to use the hosts on xmpp.org/interop/servers.shtml

15 years agoYes, we don't put these things in here, we put them in here.
Matthew Wild [Wed, 26 Nov 2008 15:58:04 +0000 (15:58 +0000)]
Yes, we don't put these things in here, we put them in here.

15 years agoWrapped a core_process_stanza call in an xpcall call
Waqas Hussain [Wed, 26 Nov 2008 04:47:16 +0000 (09:47 +0500)]
Wrapped a core_process_stanza call in an xpcall call

15 years agoAdded mod_ping with support for [XEP-0199: XMPP Ping]
Waqas Hussain [Wed, 26 Nov 2008 04:06:32 +0000 (09:06 +0500)]
Added mod_ping with support for [XEP-0199: XMPP Ping]

15 years agoChanged format for XEP-0090 to the legacy format
Waqas Hussain [Wed, 26 Nov 2008 04:02:58 +0000 (09:02 +0500)]
Changed format for XEP-0090 to the legacy format

15 years agoAdded mod_time with support for [XEP-0202: Entity Time] and [XEP-0090: Entity Time...
Waqas Hussain [Wed, 26 Nov 2008 03:56:30 +0000 (08:56 +0500)]
Added mod_time with support for [XEP-0202: Entity Time] and [XEP-0090: Entity Time] (deprecated)

15 years agoMerge from waqas
Matthew Wild [Wed, 26 Nov 2008 03:29:06 +0000 (03:29 +0000)]
Merge from waqas

15 years agoModules now sending disco replies
Waqas Hussain [Wed, 26 Nov 2008 03:27:09 +0000 (08:27 +0500)]
Modules now sending disco replies

15 years agoMinor bug fix
Waqas Hussain [Wed, 26 Nov 2008 03:26:24 +0000 (08:26 +0500)]
Minor bug fix

15 years agoAdded helper method to discomanager
Waqas Hussain [Wed, 26 Nov 2008 02:44:38 +0000 (07:44 +0500)]
Added helper method to discomanager

15 years agoAdd rough Makefile for util-src/
Matthew Wild [Wed, 26 Nov 2008 02:21:18 +0000 (02:21 +0000)]
Add rough Makefile for util-src/

15 years agoRemoved commented code
Waqas Hussain [Tue, 25 Nov 2008 20:55:07 +0000 (01:55 +0500)]
Removed commented code

15 years agoAdded util-src/hashes.c - support for sha1, sha256 and md5 hashes
Waqas Hussain [Tue, 25 Nov 2008 20:46:16 +0000 (01:46 +0500)]
Added util-src/hashes.c - support for sha1, sha256 and md5 hashes

15 years agoAdded util-src/encodings.c - support for base64, stringprep and idna encodings
Waqas Hussain [Tue, 25 Nov 2008 20:45:25 +0000 (01:45 +0500)]
Added util-src/encodings.c - support for base64, stringprep and idna encodings

15 years agoUpdate TODO
Matthew Wild [Tue, 25 Nov 2008 05:00:31 +0000 (05:00 +0000)]
Update TODO

15 years agoRefuse to run without SSL/TLS unless run_without_ssl is set in config
Matthew Wild [Tue, 25 Nov 2008 03:52:53 +0000 (03:52 +0000)]
Refuse to run without SSL/TLS unless run_without_ssl is set in config

15 years agoChange loading order of modules, config before dependency checking
Matthew Wild [Tue, 25 Nov 2008 03:50:08 +0000 (03:50 +0000)]
Change loading order of modules, config before dependency checking

15 years agoSome mod_console changes
Matthew Wild [Tue, 25 Nov 2008 03:48:43 +0000 (03:48 +0000)]
Some mod_console changes

15 years agoTrivial whitespace fix in the missing dependency message
Matthew Wild [Tue, 25 Nov 2008 02:33:13 +0000 (02:33 +0000)]
Trivial whitespace fix in the missing dependency message

15 years agoAdd MD5 to the list of checked dependencies
Matthew Wild [Tue, 25 Nov 2008 02:30:25 +0000 (02:30 +0000)]
Add MD5 to the list of checked dependencies

15 years agoFriendlier messages on missing dependencies
Matthew Wild [Tue, 25 Nov 2008 02:20:23 +0000 (02:20 +0000)]
Friendlier messages on missing dependencies

15 years agoFix softreq, so it reports when no suitable MD5 library is found
Matthew Wild [Tue, 25 Nov 2008 01:56:20 +0000 (01:56 +0000)]
Fix softreq, so it reports when no suitable MD5 library is found

15 years agoSSL library is optional, not a fatal error
Matthew Wild [Tue, 25 Nov 2008 01:55:01 +0000 (01:55 +0000)]
SSL library is optional, not a fatal error

15 years agoSome ends too much.
Tobias Markmann [Sun, 23 Nov 2008 21:56:07 +0000 (22:56 +0100)]
Some ends too much.

15 years agoSome changes to report more correct SASL failures. Support for disabled accounts.
Tobias Markmann [Sun, 23 Nov 2008 20:26:06 +0000 (21:26 +0100)]
Some changes to report more correct SASL failures. Support for disabled accounts.

15 years agoMerging with main branch.
Tobias Markmann [Sun, 23 Nov 2008 19:44:48 +0000 (20:44 +0100)]
Merging with main branch.

15 years agoChecking some variables for nil so no errors occur that'll break the server.
Tobias Markmann [Sun, 23 Nov 2008 19:43:42 +0000 (20:43 +0100)]
Checking some variables for nil so no errors occur that'll break the server.

15 years agoMerge from waqas
Matthew Wild [Sun, 23 Nov 2008 05:49:08 +0000 (05:49 +0000)]
Merge from waqas

15 years agoBacked out the backout. Now we're back out.
Matthew Wild [Sun, 23 Nov 2008 05:47:55 +0000 (05:47 +0000)]
Backed out the backout. Now we're back out.

15 years agoReverted my change to modulemanager, to restore those made by waqas
Matthew Wild [Sun, 23 Nov 2008 05:43:58 +0000 (05:43 +0000)]
Reverted my change to modulemanager, to restore those made by waqas

15 years agoAdded temporary fix for srv on windows: using opendns nameservers
Waqas Hussain [Sun, 23 Nov 2008 05:43:50 +0000 (10:43 +0500)]
Added temporary fix for srv on windows: using opendns nameservers

15 years agoBacked out changeset 79bd7a3e906c
Matthew Wild [Sun, 23 Nov 2008 05:43:17 +0000 (05:43 +0000)]
Backed out changeset 79bd7a3e906c

15 years agoCheck to prevent error on IQs from completely unhandled origins
Waqas Hussain [Sun, 23 Nov 2008 05:39:13 +0000 (10:39 +0500)]
Check to prevent error on IQs from completely unhandled origins

15 years agoMerge from waqas
Matthew Wild [Sun, 23 Nov 2008 05:21:21 +0000 (05:21 +0000)]
Merge from waqas

15 years agoAhem, a bit of an identity crisis..
Waqas Hussain [Sun, 23 Nov 2008 05:20:56 +0000 (10:20 +0500)]
Ahem, a bit of an identity crisis..

15 years agoRemoving lxmppd.cfg.dist
Matthew Wild [Sun, 23 Nov 2008 05:20:33 +0000 (05:20 +0000)]
Removing lxmppd.cfg.dist

15 years agoTypo prevented modulemanager.load() from returning the error if load failed.
Matthew Wild [Sun, 23 Nov 2008 05:14:37 +0000 (05:14 +0000)]
Typo prevented modulemanager.load() from returning the error if load failed.

15 years agoMerge from waqas
Matthew Wild [Sun, 23 Nov 2008 05:03:36 +0000 (05:03 +0000)]
Merge from waqas

15 years agoOnly start console if it is enabled in the config. Note that the exact option is...
Matthew Wild [Sun, 23 Nov 2008 04:56:46 +0000 (04:56 +0000)]
Only start console if it is enabled in the config. Note that the exact option is going to change tomorrow.

15 years agoAdd initial mod_console
Matthew Wild [Sun, 23 Nov 2008 04:54:44 +0000 (04:54 +0000)]
Add initial mod_console

15 years agoComment out remote debug, will later be enabled via config
Matthew Wild [Sun, 23 Nov 2008 04:54:05 +0000 (04:54 +0000)]
Comment out remote debug, will later be enabled via config

15 years agoSmall fix for connlisteners to accept nil for userdata
Matthew Wild [Sun, 23 Nov 2008 04:53:12 +0000 (04:53 +0000)]
Small fix for connlisteners to accept nil for userdata

15 years agoFix various mistakes in dns.lua
Matthew Wild [Sun, 23 Nov 2008 03:00:20 +0000 (03:00 +0000)]
Fix various mistakes in dns.lua

15 years agoFix dns for poor Windows users, who have never seen a resolv.conf
Matthew Wild [Sun, 23 Nov 2008 02:50:57 +0000 (02:50 +0000)]
Fix dns for poor Windows users, who have never seen a resolv.conf

15 years agoAdd new lxmppd.cfg.lua.dist example config file
Matthew Wild [Sun, 23 Nov 2008 02:42:21 +0000 (02:42 +0000)]
Add new lxmppd.cfg.lua.dist example config file

15 years agoNew configmanager. Old-style config files still work, but will print a warning
Matthew Wild [Sun, 23 Nov 2008 02:12:46 +0000 (02:12 +0000)]
New configmanager. Old-style config files still work, but will print a warning

15 years agoFix mod_selftests syntax, and switch it to use config
Matthew Wild [Sun, 23 Nov 2008 02:11:58 +0000 (02:11 +0000)]
Fix mod_selftests syntax, and switch it to use config

15 years agoAdded mod_disco
Waqas Hussain [Sat, 22 Nov 2008 22:32:57 +0000 (03:32 +0500)]
Added mod_disco

15 years agoAdded discomanager
Waqas Hussain [Sat, 22 Nov 2008 22:32:34 +0000 (03:32 +0500)]
Added discomanager

15 years agoAdded discohelper
Waqas Hussain [Sat, 22 Nov 2008 22:32:20 +0000 (03:32 +0500)]
Added discohelper

15 years agoAccount deletion support
Waqas Hussain [Sat, 22 Nov 2008 22:31:03 +0000 (03:31 +0500)]
Account deletion support

15 years agoAll the people who don't use TLS, this one's for you.
Matthew Wild [Sat, 22 Nov 2008 20:12:27 +0000 (20:12 +0000)]
All the people who don't use TLS, this one's for you.

15 years agoAdd helper function for adding message bodies to stanzas
Matthew Wild [Sat, 22 Nov 2008 19:07:41 +0000 (19:07 +0000)]
Add helper function for adding message bodies to stanzas

15 years agoCheck to prevent error for IQs from completely unhandled origins
Waqas Hussain [Sat, 22 Nov 2008 18:14:31 +0000 (23:14 +0500)]
Check to prevent error for IQs from completely unhandled origins

15 years agoRemoved useless check
Waqas Hussain [Sat, 22 Nov 2008 17:37:44 +0000 (22:37 +0500)]
Removed useless check

15 years agoNow possible to specify nil origin to core_route_stanza. Origin will be chosen as...
Matthew Wild [Fri, 21 Nov 2008 05:59:03 +0000 (05:59 +0000)]
Now possible to specify nil origin to core_route_stanza. Origin will be chosen as the host of the 'from' attribute on the stanza. Returns false on no such host.

15 years agoImport initial configmanager, not sure if it works yet, but it does pass the unit...
Matthew Wild [Fri, 21 Nov 2008 05:47:27 +0000 (05:47 +0000)]
Import initial configmanager, not sure if it works yet, but it does pass the unit tests ;)

15 years agoUpdate test.lua with a work-in-progress
Matthew Wild [Fri, 21 Nov 2008 05:46:15 +0000 (05:46 +0000)]
Update test.lua with a work-in-progress

15 years agoBetter names for variables
Matthew Wild [Fri, 21 Nov 2008 05:07:41 +0000 (05:07 +0000)]
Better names for variables

15 years agoRemove old TODO
Matthew Wild [Fri, 21 Nov 2008 05:06:35 +0000 (05:06 +0000)]
Remove old TODO

15 years agoRemove some declarations I added while debugging
Matthew Wild [Fri, 21 Nov 2008 05:06:01 +0000 (05:06 +0000)]
Remove some declarations I added while debugging

15 years agoImprove jid.split() and jid.bare() to pass new test cases with invalid JIDs
Matthew Wild [Fri, 21 Nov 2008 05:02:53 +0000 (05:02 +0000)]
Improve jid.split() and jid.bare() to pass new test cases with invalid JIDs

15 years agoAdd jid.bare() helper function
Matthew Wild [Thu, 20 Nov 2008 23:28:16 +0000 (23:28 +0000)]
Add jid.bare() helper function

15 years agoAdding selftests module, but not enabling in config
Matthew Wild [Thu, 20 Nov 2008 22:42:37 +0000 (22:42 +0000)]
Adding selftests module, but not enabling in config

15 years agoOops, never added the tests for s2smanager to the repo
Matthew Wild [Thu, 20 Nov 2008 21:06:27 +0000 (21:06 +0000)]
Oops, never added the tests for s2smanager to the repo

15 years agoAdd run_tests.sh
Matthew Wild [Thu, 20 Nov 2008 21:04:46 +0000 (21:04 +0000)]
Add run_tests.sh

15 years agoUpdate unit testing to output coverage reports
Matthew Wild [Thu, 20 Nov 2008 21:02:49 +0000 (21:02 +0000)]
Update unit testing to output coverage reports

15 years agoRemove or comment useless prints, or change them to log()
Matthew Wild [Thu, 20 Nov 2008 03:00:43 +0000 (03:00 +0000)]
Remove or comment useless prints, or change them to log()

15 years agoAdd event for server startup completed: server-started
Matthew Wild [Thu, 20 Nov 2008 02:59:40 +0000 (02:59 +0000)]
Add event for server startup completed: server-started

15 years agoDon't error reply to stanzas direct over the s2s stream they came from
Matthew Wild [Thu, 20 Nov 2008 02:05:26 +0000 (02:05 +0000)]
Don't error reply to stanzas direct over the s2s stream they came from

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 :)