prosody.git
14 years agomod_auth_cyrus: Auth provider with support for Cyrus SASL.
Waqas Hussain [Sun, 6 Jun 2010 23:23:08 +0000 (04:23 +0500)]
mod_auth_cyrus: Auth provider with support for Cyrus SASL.

14 years agomod_auth_anonymous: Fixed a syntax error.
Waqas Hussain [Sun, 6 Jun 2010 23:22:49 +0000 (04:22 +0500)]
mod_auth_anonymous: Fixed a syntax error.

14 years agomod_auth_anonymous: Auth provider with support for SASL ANONYMOUS.
Waqas Hussain [Sun, 6 Jun 2010 23:07:40 +0000 (04:07 +0500)]
mod_auth_anonymous: Auth provider with support for SASL ANONYMOUS.

14 years agomod_auth_internal_hashed: Added SCRAM-SHA-1 support for SASL.
Waqas Hussain [Sun, 6 Jun 2010 22:07:58 +0000 (03:07 +0500)]
mod_auth_internal_hashed: Added SCRAM-SHA-1 support for SASL.

14 years agomod_saslauth: Updated to use usermanager.get_sasl_handler.
Waqas Hussain [Sun, 6 Jun 2010 21:40:14 +0000 (02:40 +0500)]
mod_saslauth: Updated to use usermanager.get_sasl_handler.

14 years agomod_auth_internal, mod_auth_internal_hashed: Fixed a global access.
Waqas Hussain [Sun, 6 Jun 2010 21:38:20 +0000 (02:38 +0500)]
mod_auth_internal, mod_auth_internal_hashed: Fixed a global access.

14 years agomod_auth_internal, mod_auth_internal_hashed: Updated to provide get_sasl_handler.
Waqas Hussain [Sun, 6 Jun 2010 21:33:40 +0000 (02:33 +0500)]
mod_auth_internal, mod_auth_internal_hashed: Updated to provide get_sasl_handler.

14 years agousermanager: Changed get_supported_methods to get_sasl_handler.
Waqas Hussain [Sun, 6 Jun 2010 21:32:13 +0000 (02:32 +0500)]
usermanager: Changed get_supported_methods to get_sasl_handler.

14 years agoMerge with trunk.
Waqas Hussain [Fri, 4 Jun 2010 13:38:35 +0000 (18:38 +0500)]
Merge with trunk.

14 years agomod_presence: Enable firing of pre-events for probes.
Waqas Hussain [Fri, 4 Jun 2010 13:36:04 +0000 (18:36 +0500)]
mod_presence: Enable firing of pre-events for probes.

14 years agoRename mod_defaultauth -> mod_auth_internal, mod_hashpassauth -> mod_auth_internal_ha...
Matthew Wild [Fri, 4 Jun 2010 13:33:36 +0000 (14:33 +0100)]
Rename mod_defaultauth -> mod_auth_internal, mod_hashpassauth -> mod_auth_internal_hashed, and the providers to internal and internal_hashed respectively. Also no longer auto-load defaultauth, but instead auto-load the plugin selected for each host at startup based on the provider name.

14 years agomod_presence: Don't stop pre-event for outgoing probes.
Waqas Hussain [Fri, 4 Jun 2010 13:30:18 +0000 (18:30 +0500)]
mod_presence: Don't stop pre-event for outgoing probes.

14 years agomod_presence: Small refactoring.
Waqas Hussain [Fri, 4 Jun 2010 13:24:09 +0000 (18:24 +0500)]
mod_presence: Small refactoring.

14 years agoMerge trunk/MattJ with trunk
Matthew Wild [Fri, 4 Jun 2010 13:08:40 +0000 (14:08 +0100)]
Merge trunk/MattJ with trunk

14 years agomod_saslauth: Fix log level
Matthew Wild [Fri, 4 Jun 2010 12:55:39 +0000 (13:55 +0100)]
mod_saslauth: Fix log level

14 years agousermanager: Rename the fallback provider from 'dummyauth' to 'null'
Matthew Wild [Fri, 4 Jun 2010 12:54:15 +0000 (13:54 +0100)]
usermanager: Rename the fallback provider from 'dummyauth' to 'null'

14 years agousermanager: Add hunk that got missed in a merge
Matthew Wild [Fri, 4 Jun 2010 12:53:07 +0000 (13:53 +0100)]
usermanager: Add hunk that got missed in a merge

14 years agoutil.sasl_cyrus: Log the textual representation of unknown Cyrus SASL errors, not...
Waqas Hussain [Thu, 3 Jun 2010 13:09:02 +0000 (18:09 +0500)]
util.sasl_cyrus: Log the textual representation of unknown Cyrus SASL errors, not just the error code.

14 years agoutil.sasl_cyrus: Log the textual representation of unknown Cyrus SASL errors, not...
Waqas Hussain [Thu, 3 Jun 2010 13:09:02 +0000 (18:09 +0500)]
util.sasl_cyrus: Log the textual representation of unknown Cyrus SASL errors, not just the error code.

14 years agoutil.sasl_cyrus: Log the textual representation of unknown Cyrus SASL errors, not...
Waqas Hussain [Thu, 3 Jun 2010 13:09:02 +0000 (18:09 +0500)]
util.sasl_cyrus: Log the textual representation of unknown Cyrus SASL errors, not just the error code.

14 years agomod_presence: Send unavailable presence in response to probes to the sender's full...
Waqas Hussain [Thu, 3 Jun 2010 13:01:05 +0000 (18:01 +0500)]
mod_presence: Send unavailable presence in response to probes to the sender's full JID, not bare JID.

14 years agomod_presence: Send unavailable presence in response to probes to the sender's full...
Waqas Hussain [Thu, 3 Jun 2010 13:01:05 +0000 (18:01 +0500)]
mod_presence: Send unavailable presence in response to probes to the sender's full JID, not bare JID.

14 years agoSASL: Minor cleanup.
Waqas Hussain [Thu, 3 Jun 2010 12:48:50 +0000 (17:48 +0500)]
SASL: Minor cleanup.

14 years agoSASL: Minor cleanup.
Waqas Hussain [Thu, 3 Jun 2010 12:48:50 +0000 (17:48 +0500)]
SASL: Minor cleanup.

14 years agoutil.sasl.scram: Fixed a log level.
Waqas Hussain [Thu, 3 Jun 2010 12:47:51 +0000 (17:47 +0500)]
util.sasl.scram: Fixed a log level.

14 years agomod_presence: Send unavailable presence in response to probes to the sender's full...
Waqas Hussain [Thu, 3 Jun 2010 13:01:05 +0000 (18:01 +0500)]
mod_presence: Send unavailable presence in response to probes to the sender's full JID, not bare JID.

14 years agoutil.sasl.scram: Fixed a log level.
Waqas Hussain [Thu, 3 Jun 2010 12:47:51 +0000 (17:47 +0500)]
util.sasl.scram: Fixed a log level.

14 years agoutil.sasl.scram: Fixed a log level.
Waqas Hussain [Thu, 3 Jun 2010 12:47:51 +0000 (17:47 +0500)]
util.sasl.scram: Fixed a log level.

14 years agomod_presence: Removed unnecessary parameter 'core_route_stanza' from various functions.
Waqas Hussain [Thu, 3 Jun 2010 12:27:49 +0000 (17:27 +0500)]
mod_presence: Removed unnecessary parameter 'core_route_stanza' from various functions.

14 years agomod_presence: Removed unnecessary parameter 'core_route_stanza' from various functions.
Waqas Hussain [Thu, 3 Jun 2010 12:27:49 +0000 (17:27 +0500)]
mod_presence: Removed unnecessary parameter 'core_route_stanza' from various functions.

14 years agoMerge 0.7->trunk
Matthew Wild [Thu, 3 Jun 2010 11:29:27 +0000 (12:29 +0100)]
Merge 0.7->trunk

14 years agos2smanager: Remove potentially misleading log message (thanks albert)
Matthew Wild [Thu, 3 Jun 2010 11:28:27 +0000 (12:28 +0100)]
s2smanager: Remove potentially misleading log message (thanks albert)

14 years agoMerge 0.7->trunk
Matthew Wild [Wed, 2 Jun 2010 20:34:16 +0000 (21:34 +0100)]
Merge 0.7->trunk

14 years agonet.server_event: Also return the socket from wrapclient, to maintain compatibility...
Matthew Wild [Wed, 2 Jun 2010 20:33:44 +0000 (21:33 +0100)]
net.server_event: Also return the socket from wrapclient, to maintain compatibility with server_select (thanks uhoreg)

14 years agomod_compression: Use filters! \o/
Matthew Wild [Wed, 2 Jun 2010 17:24:56 +0000 (18:24 +0100)]
mod_compression: Use filters! \o/

14 years agoxmppserver_listener: Add filters for incoming bytes and stanzas
Matthew Wild [Wed, 2 Jun 2010 17:23:39 +0000 (18:23 +0100)]
xmppserver_listener: Add filters for incoming bytes and stanzas

14 years agos2smanager: Add filters for outgoing bytes and stanzas
Matthew Wild [Wed, 2 Jun 2010 17:23:15 +0000 (18:23 +0100)]
s2smanager: Add filters for outgoing bytes and stanzas

14 years agosessionmanager: Rename filters_initialize->initialize_filters
Matthew Wild [Wed, 2 Jun 2010 17:22:23 +0000 (18:22 +0100)]
sessionmanager: Rename filters_initialize->initialize_filters

14 years agoxmppclient_listener: Add filters for incoming bytes and stanzas
Matthew Wild [Wed, 2 Jun 2010 16:51:39 +0000 (17:51 +0100)]
xmppclient_listener: Add filters for incoming bytes and stanzas

14 years agosessionmanager: Initialize new sessions for filtering, and add filters for outgoing...
Matthew Wild [Wed, 2 Jun 2010 16:51:14 +0000 (17:51 +0100)]
sessionmanager: Initialize new sessions for filtering, and add filters for outgoing bytes and stanzas

14 years agoutil.filters: Ensure initialize() never initializes an object twice - and return...
Matthew Wild [Wed, 2 Jun 2010 16:23:57 +0000 (17:23 +0100)]
util.filters: Ensure initialize() never initializes an object twice - and return the filter function to the caller

14 years agoxmppserver_listener: Port to util.xmppstream \o/
Matthew Wild [Wed, 2 Jun 2010 15:53:40 +0000 (16:53 +0100)]
xmppserver_listener: Port to util.xmppstream \o/

14 years agoutil.filters: Break processing if a filterer returns nil
Matthew Wild [Wed, 2 Jun 2010 12:31:36 +0000 (13:31 +0100)]
util.filters: Break processing if a filterer returns nil

14 years agoutil.filters: Don't traceback with no filters of a type added
Matthew Wild [Wed, 2 Jun 2010 12:03:55 +0000 (13:03 +0100)]
util.filters: Don't traceback with no filters of a type added

14 years agonet.multiplex_listener: Test to make sure listener.onconnect isn't nil.
Waqas Hussain [Wed, 2 Jun 2010 12:25:01 +0000 (17:25 +0500)]
net.multiplex_listener: Test to make sure listener.onconnect isn't nil.

14 years agonet.multiplex_listener: Call listener.onconnect(conn) when swapping listeners.
Waqas Hussain [Wed, 2 Jun 2010 12:06:23 +0000 (17:06 +0500)]
net.multiplex_listener: Call listener.onconnect(conn) when swapping listeners.

14 years agoxmppclient_listener: Port to onconnect handler
Matthew Wild [Wed, 2 Jun 2010 11:32:24 +0000 (12:32 +0100)]
xmppclient_listener: Port to onconnect handler

14 years agoutil.filters: Don't traceback when trying to remove a filter from an uninitialized...
Matthew Wild [Wed, 2 Jun 2010 11:24:07 +0000 (12:24 +0100)]
util.filters: Don't traceback when trying to remove a filter from an uninitialized object

14 years agoutil.filters: Expose the initialization function
Matthew Wild [Wed, 2 Jun 2010 11:23:07 +0000 (12:23 +0100)]
util.filters: Expose the initialization function

14 years agoutil.filters: New utility library for managing filters on an object
Matthew Wild [Wed, 2 Jun 2010 11:20:29 +0000 (12:20 +0100)]
util.filters: New utility library for managing filters on an object

14 years agomod_pep: Corrected and optimized handling of non-available presence stanzas.
Waqas Hussain [Tue, 1 Jun 2010 20:54:17 +0000 (01:54 +0500)]
mod_pep: Corrected and optimized handling of non-available presence stanzas.

14 years agomod_iq: Removed a check for user existance when firing iq/bare/* sub-events.
Waqas Hussain [Sun, 30 May 2010 18:01:34 +0000 (23:01 +0500)]
mod_iq: Removed a check for user existance when firing iq/bare/* sub-events.

14 years agomod_pep: Use is_contact_subscribed (which uses the new rostermanager fix to avoid...
Matthew Wild [Tue, 1 Jun 2010 19:10:17 +0000 (20:10 +0100)]
mod_pep: Use is_contact_subscribed (which uses the new rostermanager fix to avoid unnecessary roster loads)

14 years agorostermanager: Optimisation to avoid unnecessarily loading rosters for offline contac...
Waqas Hussain [Tue, 1 Jun 2010 19:09:31 +0000 (20:09 +0100)]
rostermanager: Optimisation to avoid unnecessarily loading rosters for offline contacts on probes, etc.

14 years agoAdd jid support for motd
Jeff Mitchell [Sat, 29 May 2010 22:52:27 +0000 (18:52 -0400)]
Add jid support for motd

14 years agoAdd motd plugin, giving text to a user on each login.
Jeff Mitchell [Sat, 29 May 2010 18:02:58 +0000 (14:02 -0400)]
Add motd plugin, giving text to a user on each login.

14 years agoMerge compression fix
Matthew Wild [Sat, 29 May 2010 01:08:56 +0000 (02:08 +0100)]
Merge compression fix

14 years agomod_compression: Update for new session.data() syntax, fixes invalid XML errors after...
Matthew Wild [Sat, 29 May 2010 01:08:11 +0000 (02:08 +0100)]
mod_compression: Update for new session.data() syntax, fixes invalid XML errors after compression negotiation (thanks hg bisect)

14 years agoAdd the ability to have names in group files, by putting them with an = sign after...
Jeff Mitchell [Fri, 28 May 2010 22:01:53 +0000 (18:01 -0400)]
Add the ability to have names in group files, by putting them with an = sign after the jid:

myname@mydomain.com=My Name

This is then passed on to rosters.

14 years agoCorrect out of order logic in mod_hashpassauth
Jeff Mitchell [Fri, 28 May 2010 18:47:32 +0000 (14:47 -0400)]
Correct out of order logic in mod_hashpassauth

Make saslauth check the existence of the get_password and test_password functions to determine which authentication profile to use.

14 years agoAdd mechanism for upgrading to hashed passwords from default. Remove some extra debug.
Jeff Mitchell [Thu, 27 May 2010 14:54:11 +0000 (10:54 -0400)]
Add mechanism for upgrading to hashed passwords from default. Remove some extra debug.

14 years agoHave defaultauth load by default
Jeff Mitchell [Thu, 27 May 2010 13:20:08 +0000 (09:20 -0400)]
Have defaultauth load by default

14 years agoCheck in mod_hashpassauth -- works!
Jeff Mitchell [Wed, 26 May 2010 22:16:58 +0000 (18:16 -0400)]
Check in mod_hashpassauth -- works!

14 years agoMerge 0.7->trunk
Matthew Wild [Wed, 26 May 2010 12:38:22 +0000 (13:38 +0100)]
Merge 0.7->trunk

14 years agomod_groups: Check for existence of roster[false] before clearing version (thanks...
Matthew Wild [Wed, 26 May 2010 12:38:00 +0000 (13:38 +0100)]
mod_groups: Check for existence of roster[false] before clearing version (thanks Flo)

14 years agoMerge 0.7->trunk
Matthew Wild [Mon, 24 May 2010 18:46:12 +0000 (19:46 +0100)]
Merge 0.7->trunk

14 years agoutil.sasl.scram: Fix remaining - in profile name
Matthew Wild [Mon, 24 May 2010 18:44:27 +0000 (19:44 +0100)]
util.sasl.scram: Fix remaining - in profile name

14 years agoMerge trunk/Tobias->trunk
Matthew Wild [Mon, 24 May 2010 18:39:07 +0000 (19:39 +0100)]
Merge trunk/Tobias->trunk

14 years agoutil.sasl.*: Adjusting authentication provider names. All '-' replaced with '_'
Tobias Markmann [Mon, 24 May 2010 16:15:16 +0000 (18:15 +0200)]
util.sasl.*: Adjusting authentication provider names. All '-' replaced with '_'

14 years agoutil.sasl.*: Adjusting authentication provider names. All '-' replaced with '_'
Tobias Markmann [Mon, 24 May 2010 16:15:16 +0000 (18:15 +0200)]
util.sasl.*: Adjusting authentication provider names. All '-' replaced with '_'

14 years agoMerge 0.7->trunk
Matthew Wild [Mon, 24 May 2010 15:52:12 +0000 (16:52 +0100)]
Merge 0.7->trunk

14 years agoutil.sasl.scram: Fixing logic error in argument checking.
Tobias Markmann [Mon, 24 May 2010 15:44:13 +0000 (17:44 +0200)]
util.sasl.scram: Fixing logic error in argument checking.

14 years agoutil.sasl.scram: Fixing logic error in argument checking.
Tobias Markmann [Mon, 24 May 2010 15:44:13 +0000 (17:44 +0200)]
util.sasl.scram: Fixing logic error in argument checking.

14 years agoMerge 0.7->trunk
Matthew Wild [Sun, 23 May 2010 22:11:00 +0000 (23:11 +0100)]
Merge 0.7->trunk

14 years agoMerge 0.7/waqas->0.7/MattJ
Matthew Wild [Sun, 23 May 2010 22:05:01 +0000 (23:05 +0100)]
Merge 0.7/waqas->0.7/MattJ

14 years agomod_private: Detect datamanager read errors, and respond with 'internal-server-error'.
Waqas Hussain [Sun, 23 May 2010 20:00:30 +0000 (01:00 +0500)]
mod_private: Detect datamanager read errors, and respond with 'internal-server-error'.

14 years agousermanager: Take datamanager errors into account when determining account existance.
Waqas Hussain [Sun, 23 May 2010 19:49:12 +0000 (00:49 +0500)]
usermanager: Take datamanager errors into account when determining account existance.

14 years agomod_presence: Don't send 'unsubscribed' in response to probes when roster loading...
Waqas Hussain [Sun, 23 May 2010 19:37:15 +0000 (00:37 +0500)]
mod_presence: Don't send 'unsubscribed' in response to probes when roster loading fails.

14 years agorostermanager: Return an error string when subscription test fails due to an error.
Waqas Hussain [Sun, 23 May 2010 19:35:08 +0000 (00:35 +0500)]
rostermanager: Return an error string when subscription test fails due to an error.

14 years agorostermanager: Mark rosters which fail to load as broken, and never save them.
Waqas Hussain [Sun, 23 May 2010 19:29:45 +0000 (00:29 +0500)]
rostermanager: Mark rosters which fail to load as broken, and never save them.

14 years agomod_presence: Removed a useless check when handling incoming presence probes and...
Waqas Hussain [Sun, 23 May 2010 19:04:22 +0000 (00:04 +0500)]
mod_presence: Removed a useless check when handling incoming presence probes and subscriptions.

14 years agoutil.datamanager: Return an error string when failing to save.
Waqas Hussain [Sun, 23 May 2010 18:55:01 +0000 (23:55 +0500)]
util.datamanager: Return an error string when failing to save.

14 years agorostermanager: Correctly clear the bare_sessions table on roster load errors during...
Waqas Hussain [Sun, 23 May 2010 00:46:52 +0000 (05:46 +0500)]
rostermanager: Correctly clear the bare_sessions table on roster load errors during bind.

14 years agoutil.sasl.scram: Fixing issue #177.
Tobias Markmann [Sat, 22 May 2010 18:51:01 +0000 (20:51 +0200)]
util.sasl.scram: Fixing issue #177.

14 years agoutil.sasl.plain: Typo.
Tobias Markmann [Sat, 22 May 2010 18:34:32 +0000 (20:34 +0200)]
util.sasl.plain: Typo.

14 years agoutil.sasl.scram: Providing an API function to generate a salted password for the...
Tobias Markmann [Sat, 22 May 2010 17:04:53 +0000 (19:04 +0200)]
util.sasl.scram: Providing an API function to generate a salted password for the SCRAM-SHA-1 mechanism.

14 years agoutil.sasl.scram: Split up long line.
Tobias Markmann [Sat, 22 May 2010 12:58:24 +0000 (14:58 +0200)]
util.sasl.scram: Split up long line.

14 years agoutil.sasl.scram: Parsing client-final-message in a more strict way. (thanks Marc...
Tobias Markmann [Sat, 22 May 2010 12:47:21 +0000 (14:47 +0200)]
util.sasl.scram: Parsing client-final-message in a more strict way.  (thanks Marc Santamaria)

14 years agoutil.sasl.scram: Fix in nonce check of client-final-message.
Tobias Markmann [Sat, 22 May 2010 11:59:58 +0000 (13:59 +0200)]
util.sasl.scram: Fix in nonce check of client-final-message.

14 years agoutil.sasl.scram: Parsing client-first-message in a more strict way. (thanks Marc...
Tobias Markmann [Sat, 22 May 2010 11:58:15 +0000 (13:58 +0200)]
util.sasl.scram: Parsing client-first-message in a more strict way.  (thanks Marc Santamaria)

14 years agorostermanager: Don't fire roster-load event if there was an error loading the roster
Matthew Wild [Sat, 22 May 2010 11:20:22 +0000 (12:20 +0100)]
rostermanager: Don't fire roster-load event if there was an error loading the roster

14 years agosessionmanager: Change error for reaching resource limit from 'conflict' to 'resource...
Waqas Hussain [Sat, 22 May 2010 00:53:27 +0000 (05:53 +0500)]
sessionmanager: Change error for reaching resource limit from 'conflict' to 'resource-constraint' during session bind.

14 years agosessionmanager: If roster loading fails during resource bind, kick the user with...
Waqas Hussain [Sat, 22 May 2010 00:52:24 +0000 (05:52 +0500)]
sessionmanager: If roster loading fails during resource bind, kick the user with an internal-server-error.

14 years agorostermanager: When loading the roster, also return a datamanager error if available.
Waqas Hussain [Sat, 22 May 2010 00:50:47 +0000 (05:50 +0500)]
rostermanager: When loading the roster, also return a datamanager error if available.

14 years agoutil.datamanager: When failing to load a file, and the file exists, return nil, error.
Waqas Hussain [Sat, 22 May 2010 00:49:21 +0000 (05:49 +0500)]
util.datamanager: When failing to load a file, and the file exists, return nil, error.

14 years agoutil.sasl.scram: Check nonce in client final message. Check channel binding flag...
Tobias Markmann [Fri, 21 May 2010 23:48:31 +0000 (01:48 +0200)]
util.sasl.scram: Check nonce in client final message. Check channel binding flag in client first message. Adding some TODOs on more strict parsing. (thanks Marc Santamaria)

14 years agomod_privacy: Improved logging.
Waqas Hussain [Fri, 21 May 2010 22:54:50 +0000 (03:54 +0500)]
mod_privacy: Improved logging.

14 years agomod_presence: Added option 'ignore_presence_priority'.
Waqas Hussain [Fri, 21 May 2010 22:20:43 +0000 (03:20 +0500)]
mod_presence: Added option 'ignore_presence_priority'.

14 years agoutil.sasl.plain: Removing plain_hashed authentication provider. Just do hashing and...
Tobias Markmann [Fri, 21 May 2010 21:40:29 +0000 (23:40 +0200)]
util.sasl.plain: Removing plain_hashed authentication provider. Just do hashing and comparison yourself in a plain_test authentication provider.

14 years agoMerge with backout
Matthew Wild [Fri, 21 May 2010 18:45:33 +0000 (19:45 +0100)]
Merge with backout