1 Aug 2008 13:29
SASL authentication over BOSH
Tomas Karasek <tom.to.the.k <at> gmail.com>
2008-08-01 11:29:45 GMT
2008-08-01 11:29:45 GMT
Hi, I'm just working on BOSH support in Gajim and I'm testing with ejabberd 2.0.1. It listens on 5280 for BOSH connections and on 5222 for XMPP. SASL atuhentication scenario is shown in XEP 0206: http://www.xmpp.org/extensions/xep-0206.html#preconditions-sasl and ejabberd works well due to it. But problem occurs when I send empty body after the session init response (instead of <auth> element with desired SASL method). <auth> is sent later via different HTTP connection and process continues except for that the <success> element is not sent from server at the end (altough there is a pending request at that time). I.e. when client send the empty <response> (Example 8. SASL authentication step 5 in XEP 0206) server should respond with <success> but it send only empty body tag - see dump below. This behavior seems to be caused by the fact I don't send <auth> right after init response, because it works well when I do. The reason I can't send the auth right after the init response is that there is a warning dialog in Gajim for case of unsecured connection, which has to be confirmed before the authentication takes place. What I'd like to see between the init response and auth start is the requests/responses with empty body tags until client will finally start the authentication or server decide to cancel the BOSH session for some reason. Do you think this is against the BOSH spec?(Continue reading)

RSS Feed