Badlop
d6f3182731
Move functions from roster_versioning to mod_roster (EJAB-964)
...
SVN Revision: 2429
2009-08-06 21:06:16 +00:00
Pablo Polvorin
53626d16e3
Support for roster versioning (EJAB-964)
...
Introduces two options for mod_roster and mod_roster_odbc:
- {versioning, true | false} Enable or disable roster versioning on ejabberd.
- {store_current_id, true | false} If true, the current roster version is stored on DB (internal or odbc). Otherwise it is calculated on the fly each time.
Performance:
Setting store_current_id to true should help in reducing the load for both ejabberd and the DB.
Details:
If store_current_id is false, the roster version is a hash of the entire roster. If store_current_id is true, the roster version is a hash, but of the current time
(this has to do with transactional semantics; we need to perform both the roster update and the version update on the same transaction, but we don't
have the entire roster when we are changing a single item on DB. Loading it there requires significant changes to be introduced, so I opted for this simpler approach).
In either case, there is no difference for the clients, the roster version ID is opaque.
IMPORTANT:
mod_shared_roster is not compatible with the option 'store_current_id'. Shared roster and roster versioning can be both enabled, but store_current_id MUST be set to false.
SVN Revision: 2428
2009-08-06 15:45:13 +00:00
Evgeniy Khramtsov
548be039b3
implemented timeout_action: none | kill. default is none
...
SVN Revision: 2402
2009-07-30 10:25:54 +00:00
Badlop
29ea2738cc
Include original timestamp on delayed presences (thanks to Mickael Remond)(EJAB-234)
...
SVN Revision: 2348
2009-06-30 17:50:47 +00:00
Badlop
6f080f7fed
Prevent process crash if the IP and port of a connection is unknown.
...
SVN Revision: 2155
2009-06-11 18:01:36 +00:00
Badlop
ce7e9129d9
When client is closed, include the Reason in the stream trailer stanza.
...
SVN Revision: 2153
2009-06-09 12:09:48 +00:00
Badlop
48392832ef
When max_stanza_size is exceeded, return meaningful error message (EJAB-752)
...
SVN Revision: 2142
2009-06-02 21:24:33 +00:00
Badlop
fec3742aaa
Replace TYPE/1 with is_TYPE/1 (EJAB-922)
...
SVN Revision: 2057
2009-05-06 16:54:43 +00:00
Badlop
aedb847a81
* src/cyrsasl.erl: Change API of check_password: pass a function
...
to generate the digest (thanks to Graham Whitted)(EJAB-863)
* src/cyrsasl_anonymous.erl: Likewise
* src/cyrsasl_digest.erl: Likewise
* src/cyrsasl_plain.erl: Likewise
* src/ejabberd_auth.erl: Likewise
* src/ejabberd_auth_anonymous.erl: Likewise
* src/ejabberd_auth_external.erl: Likewise
* src/ejabberd_auth_internal.erl: Likewise
* src/ejabberd_auth_ldap.erl: Likewise
* src/ejabberd_auth_odbc.erl: Likewise
* src/ejabberd_auth_pam.erl: Likewise
* src/ejabberd_c2s.erl: Likewise
SVN Revision: 2033
2009-04-22 11:44:03 +00:00
Badlop
ca8eeaac57
* src/ejabberd_c2s.erl: Fix for SASL Anonymous connections not
...
stored or purged (thanks to Andy Skelton)(EJAB-912)
SVN Revision: 2032
2009-04-22 11:02:03 +00:00
Christophe Romain
409ab48068
better hadling of presence in mod_caps
...
SVN Revision: 2012
2009-04-10 07:36:17 +00:00
Badlop
a93a3370ef
* src/ejabberd_sm.erl: Partially retract SVN r1976
...
EJAB-300 (EJAB-890). Check default privacy list when account, not
a specific session, receives a presence subscription
stanza (EJAB-300).
* src/ejabberd_c2s.erl: Likewise
SVN Revision: 1998
2009-03-24 16:22:33 +00:00
Badlop
787d225f1e
* src/ejabberd_c2s.erl: Enforce privacy rules also for
...
subscription requests (EJAB-300)
* src/ejabberd_sm.erl: Likewise
SVN Revision: 1976
2009-03-07 08:59:26 +00:00
Christophe Romain
04fde3620d
Do not call mod_caps:clear_caps as it breaks PubSub/PEP (EJAB-854)
...
SVN Revision: 1912
2009-02-23 15:56:19 +00:00
Badlop
b0cc0cdcf9
* src/mod_privacy.erl: Privacy List: deny presence-out all + send
...
presence to: presence is sent (EJAB-255)
* src/ejabberd_c2s.erl: Likewise
SVN Revision: 1881
2009-02-16 16:24:08 +00:00
Mickaël Rémond
579e1972d5
* src/ejabberd_c2s.erl: Added comments.
...
SVN Revision: 1823
2009-01-17 16:33:35 +00:00
Badlop
f09509502e
* doc/guide.tex: Update copyright date 2008 to 2009 (EJAB-842)
...
* doc/guide.html: Likewise
* src/*/*.erl: Likewise
* src/*/*.erl: Remove unneeded blankspaces in license text
SVN Revision: 1804
2009-01-12 14:44:42 +00:00
Alexey Shchepin
b1252f837f
* src/tls/tls_drv.c: Added a flag to avoid certificate validation
...
* src/tls/tls.erl: Likewise
* src/ejabberd_c2s.erl: Likewise
SVN Revision: 1774
2009-01-05 17:21:10 +00:00
Mickaël Rémond
1f57a380c8
* src/ejabberd_c2s.erl: Remove useless comment and port Alexey fix to 2.0.x branch.
...
SVN Revision: 1764
2008-12-29 12:06:34 +00:00
Alexey Shchepin
df478a8e90
* src/ejabberd_c2s.erl: Bugfix in "from" attribute checking
...
SVN Revision: 1763
2008-12-29 11:11:37 +00:00
Mickaël Rémond
707aa4fb8c
* src/ejabberd_c2s.erl: We should allow use of bare resource in from by the client (partially revert r1727) (EJAB-812)
...
SVN Revision: 1759
2008-12-28 12:15:51 +00:00
Alexey Shchepin
620cbc765c
* src/ejabberd_c2s.erl: Bugfix in "from" attribute checking
...
SVN Revision: 1727
2008-12-12 13:08:00 +00:00
Christophe Romain
e2d8154a80
Reduce memory consumption due to caps handling
...
SVN Revision: 1712
2008-12-08 14:10:55 +00:00
Mickaël Rémond
4618ec1fef
* src/ejabberd_c2s.erl: Enforce client stanza from attribute (EJAB-812).
...
* src/jlib.erl: Likewise.
SVN Revision: 1706
2008-12-08 09:21:36 +00:00
Mickaël Rémond
10e3f2cf92
* src/ejabberd_s2s_out.erl: exports the DNS resolution function.
...
SVN Revision: 1674
2008-11-08 17:50:54 +00:00
Alexey Shchepin
8cdebd485a
* src/ejabberd_c2s.erl: Disable zlib when STARTTLS is required
...
SVN Revision: 1672
2008-11-03 13:54:42 +00:00
Badlop
426e75a298
* src/ejabberd_c2s.erl: Ensure unique ID in roster push (EJAB-721)
...
* src/mod_roster.erl: Likewise
* src/mod_roster_odbc.erl: Likewise
* src/mod_shared_roster.erl: Likewise
SVN Revision: 1666
2008-10-24 18:01:08 +00:00
Christophe Romain
11788b2953
send last published events now supports PEP events from unavailable users nodes (EJAB-698)
...
SVN Revision: 1550
2008-08-27 09:28:47 +00:00
Badlop
c3bda4aaee
* doc/guide.tex: Update Process-one name to ProcessOne (EJAB-708)
...
* doc/guide.html: Likewise
* doc/api/overview.edoc: Likewise
* src/*/*.erl: Likewise
* src/*/*.hrl: Likewise
* src/*/*.c: Likewise
* src/odbc/*.sql: Likewise
SVN Revision: 1499
2008-07-31 11:18:49 +00:00
Badlop
be140c1a23
* src/ejabberd_c2s.erl: Put auth_module in Info always (EJAB-549)
...
SVN Revision: 1454
2008-07-16 18:05:46 +00:00
Christophe Romain
e0e7797e99
Rolled back the previous IP getting patch, and Report connection's IP address in ejabberd_http_poll
...
SVN Revision: 1450
2008-07-16 12:55:29 +00:00
Christophe Romain
35d25d3420
PubSub improvements, and solves (EJAB-453) (EJAB-608)
...
SVN Revision: 1408
2008-07-03 09:56:31 +00:00
Badlop
ff94e586eb
* src/ejabberd_c2s.erl: Bugfix: deliver messages when first
...
presence is Invisible (thanks to Dariusz Markowicz)(EJAB-262)
SVN Revision: 1348
2008-06-09 23:43:47 +00:00
Mickaël Rémond
cf42ea0bcb
* src/ejabberd_c2s.erl: user_send_packet hook now called on all packets including presence packets (EJAB-634)
...
SVN Revision: 1341
2008-05-22 10:19:35 +00:00
Mickaël Rémond
a664579b58
* src/ejabberd_c2s.erl: Added C2S blacklist support (EJAB-625).
...
* src/mod_ip_blacklist.erl: Likewise.
* src/jlib.erl: Added IP format tuple to string function.
* src/ejabberd_socket.erl: Properly handled c2s start failure (happen for blacklisted IP).
SVN Revision: 1317
2008-05-05 16:22:06 +00:00
Badlop
c88a4650ba
* src/ejabberd_c2s.erl: Added forbidden_session_hook
...
* src/acl.erl: New access types: resource, resource_regexp and
resource_glob
* doc/guide.tex: Likewise
SVN Revision: 1301
2008-04-25 09:25:31 +00:00
Alexey Shchepin
797544333c
* src/mod_register.erl: Restrict registration frequency per IP or
...
user
* src/ejabberd_c2s.erl: Pass IP to the c2s_unauthenticated_iq hook
* src/ejabberd_config.erl: Added registration_timeout option
* src/treap.erl: Treaps implementation
SVN Revision: 1299
2008-04-22 21:51:32 +00:00
Badlop
96f0c001d9
* src/ejabberd_auth.erl: Improve anonymous authentication to not
...
remove rosters accidentally (EJAB-549). New functions in
ejabberd_auth to get/check password and know which module accepted
the authentication. New element 'auth_module' in ejabberd_c2s
record 'statedata'. Cyrsasl provides a new property in the
response: {auth_module, AuthModule}.
* src/ejabberd_auth_anonymous.erl: Likewise
* src/ejabberd_c2s.erl: Likewise
* src/cyrsasl_anonymous.erl: Likewise
* src/cyrsasl_digest.erl: Likewise
* src/cyrsasl_plain.erl: Likewise
SVN Revision: 1297
2008-04-22 17:41:30 +00:00
Mickaël Rémond
b8b2bde8d0
*src/ejabberd_c2s.erl: Uniform default value for empty privacy list. Fixes (EJAB-603).
...
SVN Revision: 1281
2008-04-10 08:14:38 +00:00
Badlop
2c8cc8ae2d
* src/ejabberd_c2s.erl (process_presence_probe): Don't route a
...
presence probe to oneself (EJAB-498)
SVN Revision: 1275
2008-04-03 22:35:26 +00:00
Christophe Romain
56e9971435
Bug in get_conn_type since SVN r1194 crashes http-bind and http-poll (thanks to Brian Cully) (EJAB-526)
...
SVN Revision: 1197
2008-02-18 09:55:06 +00:00
Christophe Romain
04d688c1ba
Retreive connection type in sm_register_connection_hook
...
SVN Revision: 1194
2008-02-15 16:35:32 +00:00
Badlop
2d2fcc8210
* doc/guide.tex: Updated copyright dates to 2008
...
* src/*: Likewise
SVN Revision: 1153
2008-01-15 17:02:57 +00:00
Christophe Romain
20c27ea9d9
EJAB-491 fix
...
SVN Revision: 1145
2008-01-11 01:39:10 +00:00
Christophe Romain
b3bf437dd1
Send last published PEP event now checks the correct peer caps (EJAB-491)
...
SVN Revision: 1143
2008-01-10 15:02:54 +00:00
Mickaël Rémond
56fe3579bb
* Applied copyright update patch 1.
...
SVN Revision: 1110
2007-12-24 11:41:41 +00:00
Christophe Romain
02eaf9eaec
several pubsub/pep bugfix
...
SVN Revision: 1096
2007-12-22 00:04:05 +00:00
Badlop
60ea99d1a3
* src/ejabberd_c2s.erl: Increase the timeout of open socket
...
without authentication to 60 seconds because many Jabber clients
are not yet capable of handling this correctly (EJAB-355)
SVN Revision: 1040
2007-12-06 17:42:25 +00:00
Alexey Shchepin
c3c782d882
* src/mod_caps.erl: CAPS support (thanks to Magnus Henoch)
...
* src/ejabberd_local.erl: Support for IQ responses
* src/jlib.erl: Added iq_query_or_response_info/1 function
* src/jlib.hrl: Added NS_PUBSUB_ERRORS and NS_CAPS
* src/mod_pubsub/Makefile.in: New pubsub+pep implementation
(thanks to Christophe Romain and Magnus Henoch)
* src/ejabberd_sm.erl: Added get_session_pid/3 function
* src/ejabberd_c2s.erl: Added get_subscribed_and_online/1 function
SVN Revision: 1004
2007-12-01 05:16:30 +00:00
Jérôme Sautret
96ded4535d
* src/ejabberd_s2s.erl: don't use the resource of the sender to choose
...
a s2s connection to ensure that a muc room always uses the same
connection
Merge branch 'ejabberd_s2s'
Conflicts:
.gitignore
src/configure
src/ejabberd_c2s.erl
src/ejabberd_s2s.erl
SVN Revision: 963
2007-10-30 17:38:40 +00:00