[development] XWChat module with Jabberd2

Salvatore De Paolis iwkse at gmx.com
Thu Apr 7 15:20:36 UTC 2011


Hi all,
I wasn't sure if posting this on the support or development, so to avoid
crossposting I'm doing it only here.

I have a Jabberd2 server and I'm using punjab to be able to have BOSH support
to allow communication with XWChat.
I've configure a proxy with Lighttpd and now the connection seems to work fine
although I get an authentication error in XWChat. It doesn't matter if I use
SSL or not the result is the same.

"Wrong combination Username / Password. Please re-login to the site for
synchronization Disconnected from Server"

I'll post here some logs of both methods.

Without SSL:

POST

<body rid="344208" sid="4ce5404974439beabde16c904f82d134"
xmlns="http://jabber.org/protocol/httpbind"><iq xmlns="jabber:client"
type="get" id="auth1"><query
xmlns="jabber:iq:auth"><username>testuser</username></query></iq></body>

RESPONSE

<body xmlns='http://jabber.org/protocol/httpbind'><iq xmlns='jabber:client'
type='result' id='auth1'><query
xmlns='jabber:iq:auth'><username>testuser</username><resource/><password/><digest/>
</query></iq></body>

POST

<body rid="344209" sid="4ce5404974439beabde16c904f82d134"
xmlns="http://jabber.org/protocol/httpbind"><iq xmlns="jabber:client"
type="set" id="auth2">
<query xmlns="jabber:iq:auth">
<username>testuser</username><resource>Jabberd2</resource>
<digest>0dbd24a4777e51d9be1a4faa50d1345e05818d99</digest></query></iq></body>

RESPONSE

<body xmlns='http://jabber.org/protocol/httpbind'><iq xmlns='jabber:client'
type='error' id='auth2'>
<error code='401'/><query xmlns='jabber:iq:auth'>
<username>testuser</username><resource>Jabberd2</resource>
<digest>0dbd24a4777e51d9be1a4faa50d1345e05818d99</digest></query></iq></body>


With SSL:

POST

<body content="text/xml; charset=utf-8" hold="1"
xmlns="http://jabber.org/protocol/httpbind" to="localhost" wait="10"
rid="515983" route="xmpp:localhost:5222" secure="false" ver="1.6"
xmlns:xmpp="urn:xmpp:xbosh" xmpp:version="1.0"></body>

RESPONSE

<body xmlns='http://jabber.org/protocol/httpbind' inactivity='60' secure='true'
authid='5nsvdw379nv7su01bkx88j92ibjpfyillbgz8k6h' content='text/xml;
charset=utf-8' window='3' polling='15' sid='a029a1b4f59393f0a4e2a0856a45d948'
requests='2' wait='10'>
<stream:features
xmlns='jabber:client'xmlns:stream='http://etherx.jabber.org/streams'>
<address xmlns='http://affinix.com/jabber/address'>127.0.0.1</address>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>PLAIN</mechanism>
<mechanism>DIGEST-MD5</mechanism>
</mechanisms>
<auth xmlns='http://jabber.org/features/iq-auth'/>
<register xmlns='http://jabber.org/features/iq-register'/>
</stream:features>
</body>

POST

<body rid="515984" sid="a029a1b4f59393f0a4e2a0856a45d948"
xmlns="http://jabber.org/protocol/httpbind">
<auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl"
mechanism="DIGEST-MD5"></auth></body>

RESPONSE

<body xmlns='http://jabber.org/protocol/httpbind'>
<challenge
xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cmVhbG09InNpbnVzaWEub3JnIiwgbm9uY2U9Ilh5RWk3VGZzcSttRitPOUdic2tQU0E9PSIsIHFvcD0iYXV0aCIsIGNoYXJzZXQ9dXRmLTgsIGFsZ29yaXRobT1tZDUtc2Vzcw==</challenge>
</body>

POST

<body rid="515985" sid="a029a1b4f59393f0a4e2a0856a45d948"
xmlns="http://jabber.org/protocol/httpbind">
<response
xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dXNlcm5hbWU9Iml3a3NlIixyZWFsbT0ic2ludXNpYS5vcmciLG5vbmNlPSJYeUVpN1Rmc3ErbUYrTzlHYnNrUFNBPT0iLGNub25jZT0iR0RyeXNXbGhVdnlVRVAiLG5jPSIwMDAwMDAwMSIscW9wPWF1dGgsZGlnZXN0LXVyaT0ieG1wcC9zaW51c2lhLm9yZyIscmVzcG9uc2U9IjkzYzY2NzE4MTgzMWI4YThmYmY3NzcwMGNiZmZmNDkwIixjaGFyc2V0PSJ1dGYtOCI=</response>
</body>

RESPONSE

<body xmlns='http://jabber.org/protocol/httpbind'>
<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><malformed-request/>
</failure>
</body>

Any help to understand better where the problem is?

Regards
Salvatore


More information about the development mailing list