Possible bug in In-Band Registration code of Openfire

For some unknown reason it is not possible to register a new account using Coccinella and the latest Openfire version. This error was reported here: http://coccinella.im/node/188

Hey sanderd,

I just tested registering a new account using in-band and it worked fine. However, I noticed that if you are using an incorrect XMPP domain you will get the bad-request error that was mentioned here.

Regards,

– Gato

What’s wrong with having localhost as the domain?

When a client is connected to an XMPP server but is not authenticated yet his options are very limited. For instance, if a client tries to send an IQ packet to a remote server then that operation is not allowed. Therefore, any IQ packet sent to an address that does not match the XMPP domain is rejected. You can have localhost as your XMPP domain and in that case the XMPP client needs to send the iq:register to the localhost XMPP domain and not any other domain.

Regards,

– Gato

In your Coccinella forums I see that the client is sending the stream header to localhost but the server is responding as computer-van-sander-devrieze.local. After that Coccinella should use the real XMPP domain and not what the client thought was the XMPP domain of the server.

Regards,

– Gato

Mats fixed the bug, thx for the help: https://bugs.launchpad.net/coccinella/+bug/195499/comments/3