Noob trying to use XIFF to deal with Jabberd

Hello,

I’m trying XIFF to connect and deal with a jabberd2-mysql server…

I tried examples from Mike Chambers ( thanks Mike ) here: http://www.mikechambers.com/blog/2008/08/14/connecting-to-an-xmpp-jabber-server- with-the-xiff-as3-library/ and here: http://www.mikechambers.com/blog/2008/08/18/connecting-anonymously-to-an-xmpp-gr oup-chat-using-xiff/ but I think they both use OpenFire.

I have to built my own client but for a Jabber server and since I connect to this, I have to deal with Authentication mechanisms ( stream:features )…

May I have to extends XMPPSocketConnection to do this or are there ways to handle these server responses with XIFF?

My researches are based on RFC3920.

Sorry for this noob question and thanks for your answers.

Stef

I use XIFF with an ejabberd powered server. XMPP is a strict protocol so I’m sure that as long as you follow the spec, the authentication should work… If you rolled your own server, I’d be more worried that your server may not be following the correct spec.

What is your XIFF code to authenticate?

Hi Mitchell,

I’m using XIFF with a jabberd2-mysql server on an Ubuntu dist.

There is the dialog between my client and the server (username and password are’nt set):

1. ( connection.useAnonymousLogin = true; )

<?xml version="1.0"?>

<< <?xml version='1.0'?><stream:stream version=“1.0” id=“sqjzfns1co25b69s69khgi36nsir3ewv5fvk2nmf” xmlns=“jabber:client” xmlns:stream=“http://etherx.jabber.org/streams” from=“sangoku” ><stream:features xmlns:stream=“http://etherx.jabber.org/streams”>ANONYMOUSDIGEST-MD5PLAIN</stream:fea tures>

<<

2. ( connection.useAnonymousLogin = false; )

<?xml version="1.0"?>

<< <?xml version='1.0'?><stream:stream version=“1.0” id=“sqjzfns1co25b69s69khgi36nsir3ewv5fvk2nmf” xmlns=“jabber:client” xmlns:stream=“http://etherx.jabber.org/streams” from=“sangoku” ><stream:features xmlns:stream=“http://etherx.jabber.org/streams”>ANONYMOUSDIGEST-MD5PLAIN</stream:fea tures>

<< Enter a username and password to register with this server.

I saw in the rfc3920 that when I first receive the stream:features node, I have to transmit to the server my authentication choice like :

then receive a node and after that I have to resend a new stream:stream node to ensure the login.

I can’t figure why I receive an error when I set useAnonymousLogin to true.

Maybe I misconfigured my jabberd2-mysql server?

Stef

Hi,

I’ve downloaded the sources from the svn and all is fine now.

Stef