Ejabberd xiff, login problem

Hi,

I have some problems with XIFF and ejabberd. I'm trying to authenticate on a ejabberd server but I can't.

My IM client sends

<?xml version="1.0"?>
<stream:stream to="myServer.com" xmlns="jabber:client" 
xmlns:stream="http://etherx.jabber.org/streams" />

and receives

<?xml version='1.0'?>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' 
id='4148489547' from='myServer.com' xml:lang='en'>
</stream:stream>

So the connection is established with the server but then, for the authentication, the client sends

<iq to="agora.atosorigin.com" type="get" id="auth_1">
<query xmlns="jabber:iq:auth"><username>agora2</username></query>
</iq>

but it never received an answer.
I don't understand, I think the stanza is ok.

Can someone help me please?

Thank you.

Bane

PS: Sorry for my bad english

bane wrote:Hi, I have some

bane wrote:

Hi,

I have some problems with XIFF and ejabberd. I'm trying to authenticate on a ejabberd server but I can't.

I'm not really fluent in these Flash things… are you trying to:

  • develop an application that requires Flash 9, which supports normal XMPP streams?
  • or develop an application for lower Flash versions, which don't support proper XMPP and therefore requires a patch to ejabberd and a special degeneracy in the XMPP stream?
Quote:

My IM client sends

<?xml version="1.0"?>
<stream:stream to="myServer.com" xmlns="jabber:client" 
xmlns:stream="http://etherx.jabber.org/streams" />

Here, your client opens a stream and immediately closes it. The text you send vaguely, but not entirely or convincingly, resembles the XMPP stream degeneracy that pre-9 Flash clients use.

Quote:

and receives

<?xml version='1.0'?>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' 
id='4148489547' from='myServer.com' xml:lang='en'>
</stream:stream>

In response, the server opens a stream and immediately closes it.

Quote:

So the connection is established with the server but then, for the authentication, the client sends

<iq to="agora.atosorigin.com" type="get" id="auth_1">
<query xmlns="jabber:iq:auth"><username>agora2</username></query>
</iq>

but it never received an answer.

Since the stream is closed, the server sees no need to reply.

bane wrote: My IM client

bane wrote:

My IM client sends

<?xml version="1.0"?>
<stream:stream to="myServer.com" xmlns="jabber:client" 
xmlns:stream="http://etherx.jabber.org/streams" />

Doesn't that last slash close the <stream> stanza? You don't want to do that. Don't invoke </stream> until you are disconnecting from the server.

Syndicate content