aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | Do not print full error message when LDAP timeout occurs (EJAB-1324)Evgeniy Khramtsov2010-11-171-0/+2
| |
* | Set SSL_MODE_RELEASE_BUFFERS mode when available (EJAB-1351)Evgeniy Khramtsov2010-11-171-0/+3
| |
* | Provide new, not old, affiliation in kick/ban presence with codes 321 and 301Badlop2010-11-161-5/+8
| |
* | Strip status when needed in presence-unavailable as wellEvgeniy Khramtsov2010-11-151-2/+9
| |
* | Fix typos in the example configuration fileBadlop2010-11-121-2/+2
| |
* | Before binding tcp ports, checks the socket type and listener optionsAndreas Köhler2010-11-101-8/+19
| | | | | | | | | | | | If the callback module has a socket type of independent and needs to create the listener itself, do not pre-bind the port. The same holds if there are errors in the listener configuration.
* | Bind listener ports early and start accepting connections laterAndreas Köhler2010-11-101-31/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It may happen that auth or rdbms client tcp connections bind a local socket to a port number required by a configered listener. The ejabberd applications fails to start up and needs to be restarted. In plain C you would bind(2) the listener port and listen(2) later on. gen_tcp:listen/2 does not allow to separate these two steps though, so another way is not to accept connections while start up. OTOH, the kernel will syn/ack incoming connections and receive data, leaving them in a buffer for the ejabberd to read from. If this is unwanted, a load balancer would need to receive data from the ejabberd server before adding the node to its pool. This patch binds tcp ports while initializing the ejabberd_listener process, storing ListenSockets in an ets table. start_listeners/0 will reuse these ports later on.
* | In mod_last*:get_last_iq/4, check for user resources first to return 0 ↵Andreas Köhler2010-11-102-20/+38
| | | | | | | | | | | | seconds if there is one Fixes problem 2 of EJAB-1158.
* | Refactor mod_last to use the same core get_last/2 functionality, but keep ↵Andreas Köhler2010-11-102-43/+52
| | | | | | | | | | | | | | | | api stable The local function get_last/4 has been renamed to get_last_iq/4, since it converts the result of get_last/2 (typically {ok, TimeStamp, Status}) to an iq packet.
* | Before forwarding last activity requests to a user, check that the user's ↵Andreas Köhler2010-11-101-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | presence is visible for From According to XEP-0012, 4. Online User Query, "if the requesting entity is not authorized to view the user's presence information (normally via a presence subscription as defined in XMPP IM), the user's server MUST NOT deliver the IQ-get to an available resource but instead MUST return a <forbidden/> error in response to the last activity request." So check for a subscription of from of the jid and bare jid and whether outgoing presences to From are allowed. Fixes problem 3 of EJAB-1158.
* | Remove dead code for NS_VCARD iq packets from ejabberd_c2sAndreas Köhler2010-11-101-12/+0
| | | | | | | | | | | | | | | | For EJAB-1045, the special NS_VCARD block for handling incoming vcard iqs on behalf of clients has already been restricted to cases where the user or resource part of the recipient is empty. But then the packets should not have been routed to the c2s process anyway. This patch completely removes it.
* | Use ejabberd_c2s:privacy_check_packet/5 for all those hook folded runs in ↵Andreas Köhler2010-11-101-95/+16
| | | | | | | | the c2s module
* | Use c2s state data as user and server in ejabberd_c2s:is_privacy_allowAndreas Köhler2010-11-101-15/+16
| | | | | | | | | | | | | | | | | | | | | | | | is_privacy_allow is only used in ejabberd_c2s:handle_info/3 to determine for a few presence types whether the packet is allowed to be forwarded to the user's client. This only makes sense if To#jid.user and To#jid.server match StateData#state.user and StateData#state.server. Also, add the atom in as parameter to a new argument Dir of is_privacy_allow and extract from that function privacy_check_packet(StateData, From, To, Packet, Dir) which runs the privavcy check without converting allow/deny to true/false.
* | Correct error responses of forbidden offline last activity queriesAndreas Köhler2010-11-102-4/+4
| | | | | | | | | | | | | | According to XEP-0012 Last Activity, the server must return iq errors with forbidden instead of not-allowed. Fixes problem 1 of EJAB-1158.
* | populate pubsub#roster_groups_allowed in node configuration options (thanks ↵Christophe Romain2010-11-101-2/+13
| | | | | | | | to Karim Gemayel)(EJAB-1344)
* | fix bad plugin order issue injected in previous patch (EJAB-1286)Christophe Romain2010-11-091-1/+1
| |
* | Correct privacy check direction in mod_last (EJAB-1339)Andreas Köhler2010-11-092-4/+4
| | | | | | | | | | | | | | The change for EJAB-1271 to change the direction of the privacy check from out to in violates the idea that the check should imitate a subscription state check of from. Rather correct the order of the From and To parameters.
* | Change max restart strategy of ejabberd_odbc_sup to handle some SQL timeouts.Andreas Köhler2010-11-081-1/+1
| |
* | avoid node_call to break transaction (thanks to Karim Gemayel)(EJAB-1286)Christophe Romain2010-11-081-6/+11
| |
* | Re-raise exceptions caught in gen_mod:start_module/3 (EJAB-1335)Andreas Köhler2010-11-071-5/+5
| | | | | | | | | | | | | | | | | | | | Modules configured by the administrator normally should not be treated as optional, so a exception (error, exit, throw) to start them should not be caught and logged only. This patch re-raises a caught exception instead of ignoring the exception and inserting the module's opts on success. That way gen_mod:get_module_opt/4 should work while calling Module:start/2.
* | Take care of xml:lang attribute in unauthenticated stanzas as wellEvgeniy Khramtsov2010-11-061-1/+11
| |
* | New ip_access option restricts which IPs can register (thanks to Alexey ↵Badlop2010-11-052-5/+105
| | | | | | | | Shchepin)(EJAB-915)
* | Disable mod_register_web in default config because by default captcha is ↵Badlop2010-11-051-3/+3
| | | | | | | | disabled
* | Added mod_register_web: web page for account registration (EJAB-471)Badlop2010-11-053-0/+626
| |
* | Disable LRU caching algorithm for LDAP shared rostersEvgeniy Khramtsov2010-11-052-53/+96
| |
* | Do not store long language tag to avoid possible DoS/flood attacksEvgeniy Khramtsov2010-11-051-1/+13
| |
* | LDAP shared roster support (thanks to Realloc and Marcin Owsiany)Evgeniy Khramtsov2010-11-051-0/+672
| |
* | Fixes a leak of ejabberd_receiver processes.Jonas Ådahl2010-11-031-1/+7
| | | | | | | | | | | | When a (non-frontend) socket module without any custom receiver fails to start, the newly created ejabberd_receiver process needs to be properly closed.
* | Implement the mod_irc option default_encoding, it was already documentedBadlop2010-11-021-6/+22
| | | | | | | | | | | | Related: http://www.ejabberd.im/node/4270#comment-56609 http://www.ejabberd.im/node/4270#comment-56780
* | Fix crash in ejabberd_c2s when blacklist hook returned true (thanks to Jonas ↵Badlop2010-11-022-2/+5
| | | | | | | | | | | | | | Ådahl) Cause of the crash jlib:ip_to_list/1 only supports IP tuples using the form {N1,N2,N3,N4} which is not the case when IPv6 is enabled.
* | Merge branch '2.1.x' of ↵Evgeniy Khramtsov2010-11-011-3/+3
|\ \ | | | | | | | | | git+ssh://gitorious.process-one.net/ejabberd/mainline into 2.1.x
| * | Fix errors in EDoc commentsBadlop2010-10-281-3/+3
| | |
* | | Do not run set_last request inside a transactionEvgeniy Khramtsov2010-11-011-8/+20
|/ /
* | Include a Required xml element in the captcha fieldBadlop2010-10-271-2/+4
| |
* | Ignore Length argument to tls:recv/[23] (EJAB-1327)Andreas Köhler2010-10-261-2/+4
| | | | | | | | | | The Length argument cannot be used for gen_tcp:recv/3, because the compressed size does not equal the desired uncompressed one.
* | Re-use the TLSSock argument in tls:send/2 (EJAB-1327)Andreas Köhler2010-10-261-2/+2
| |
* | * Add top-level instructions for x:data incompatible clientsEvgeniy Khramtsov2010-10-261-2/+7
| | | | | | | | * Remove trailing dot
* | Changes in registration form to workaround client problems (EJAB-1262)Badlop2010-10-252-5/+13
| | | | | | | | | | | | | | | | Changes included: * Remove var in fixed field because Gajim and Tkabber display it to user * Add workaround for Psi's overlap fields * Add var=url attribute, required by Psi to display the field * Provide the image URL as a copy-able form field
* | Workaround for Psi's wrong Type in form submissionBadlop2010-10-251-0/+2
| |
* | Add CAPTCHA example configurations to cfg (EJAB-1262)(EJAB-1326)Badlop2010-10-251-0/+10
| |
* | Provide image url in registration form when captcha is enabledEvgeniy Khramtsov2010-10-251-1/+7
| |
* | Add password entropy check (EJAB-1326)Evgeniy Khramtsov2010-10-242-31/+84
| |
* | * Rename option captcha to captcha_protected for consistency.Evgeniy Khramtsov2010-10-241-1/+1
| | | | | | | | * Document captcha_protected option
* | Merge branch '2.1.x' of ↵Evgeniy Khramtsov2010-10-245-325/+437
|\ \ | | | | | | | | | git+ssh://gitorious.process-one.net/ejabberd/mainline into 2.1.x
| * | improve documentation (thanks to Karim Gemayel)Christophe Romain2010-10-213-256/+325
| | |
| * | Change directory before any operation to one readable by INSTALLUSER (EJAB-1322)Peter Lemenkov2010-10-191-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is required in order to suppress error messages like "File operation error: eacces" when ejabberd was started from directory, which is not readable by INSTALLUSER (/root, for example). See rhbz #564686: https://bugzilla.redhat.com/564686 Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
| * | Fix bug in mod_pubsub in_subscription return valueBadlop2010-10-191-4/+6
| | |
| * | documentation update (thanks to Karim Gemayel)Christophe Romain2010-10-181-102/+139
| | |
* | | CAPTCHA IBR support (EJAB-1262)Evgeniy Khramtsov2010-10-242-39/+179
|/ /
* | When privacy list denies local user's outgoing stanza, try to return error ↵Badlop2010-10-161-0/+4
| | | | | | | | | | | | | | | | (EJAB-1320) See: http://xmpp.org/extensions/xep-0016.html#example-51 Example 51. Error: contact is blocked