[jdev] jabber:iq:auth in the component:accept namespace?

Konstantin Klyagin k at thekonst.net
Fri Aug 19 11:07:08 CDT 2005


On Fri, Aug 19, 2005 at 02:57:44PM +0200, Konstantin Klyagin wrote:

> [OUT]<route to='konst at thekonst.homeip.net'
> from='some at jims.thekonst.homeip.net'
> id='1' type='auth'><iq type='get'><query
> xmlns='jabber:iq:auth'><username>konst</username></query></iq></route>

> [IN]<route from='konst at thekonst.homeip.net'
> to='some at jims.thekonst.homeip.net' type='auth'><iq
> type='result'><query
> xmlns='jabber:iq:auth'><username>konst</username><digest/><password/><resource/></query></iq></route>

> That's pretty cool. I'll investigate it this way so far. Will get
> back to you with questions if I have some. Thanks for your help!

Still, it apprears to reply well on iq get packet, but when I try
to actually login from my component, I get the same error:

[OUT]<route from='helpdesk34 at jims.thekonst.homeip.net'
to='konst at thekonst.homeip.net' type='auth' id='1'><iq type='set'
id='2'><query
xmlns='jabber:iq:auth'><username>konst</username><resource>a</resource><password>****</password></query></iq></route>

[IN]<route from='konst at thekonst.homeip.net'
to='helpdesk34 at jims.thekonst.homeip.net' type='auth'><iq
type='error' id='2'><query
xmlns='jabber:iq:auth'><username>konst</username><resource>a</resource><password>****</password></query><error
code='406'>Not Acceptable</error></iq></route>

On the other hand, sending exactly the same packet over a client connection
works:

konst at morgue ~ $ telnet localhost 5222
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
<?xml version='1.0'?>

<stream:stream xmlns:stream='http://etherx.jabber.org/streams'
xmlns='jabber:client' to='thekonst.homeip.net'>

<?xml version='1.0'?><stream:stream
xmlns:stream='http://etherx.jabber.org/streams' id='430602EE'
xmlns='jabber:client' from='thekonst.homeip.net'>

<iq type='set' id='2'><query
xmlns='jabber:iq:auth'><username>konst</username><resource>a</resource><password>****</password></query></iq>

<iq type='result' id='2'/>

-- 
konst at http://thekonst.net/



More information about the JDev mailing list