[JDEV] Re: jdev digest, Vol 1 #1423 - 8 msgs
Jean-Louis Seguineau /EXC/TEC
jean-louis.seguineau at antepo.com
Mon May 13 14:31:33 CDT 2002
Hi Laurent,
This is a simple one:) but not very well documented!
When you require authentication through a <route> packet you have to send it
to the user, not the server. In your case it will be:
component --> jabber
<route to='lschweiz at 10.192.72.61' from='sip.10.192.72.61' type='auth'>
<iq type='get' id='Sip1'>
<query
xmlns='jabber:iq:auth'><username>lschweiz at 10.192.72.61</username></query>
</iq>
</route>
then the server will answer with whatever the authentication protocoles are
in an <iq> result. Note that you use the generic user name without resource.
You should then send a set to the user address including the resource this
time.
component --> jabber
<route to='lschweiz at 10.192.72.61/resource' from='sip.10.192.72.61'
type='auth'>
<iq type='set' id='Sip2'>
<query
xmlns='jabber:iq:auth'><username>lschweiz at 10.192.72.61</username><password>y
ourpassword</password><resource>resource</resource></query>
</iq>
</route>
Happy component building
____________________________
Jean-Louis Seguineau
Chief Technology Officer
Antepo, Inc.
----- Original Message -----
> From: "Schweizer Laurent" <schweizerl at hotmail.com>
> To: jdev at jabber.org
> Date: Sat, 11 May 2002 14:15:13 +0200
> Subject: [JDEV] error 406 when i try to auth a user with a component
> Reply-To: jdev at jabber.org
>
> Hello,
>
> I want to auth a user with a component, but i receive a error 406 Not
> Acceptable
>
> I have make the registration of the user (lschweiz) with a jabber client
> (Exodus)
>
> Laurent Schweizer
>
> component --> jabber server
> <stream:stream xmlns='jabber:component:accept'
> xmlns:stream='http://etherx.jabber.org/streams' to='10.192.72.61'>
>
> jabber server --> component
>
> <?xml version='1.0'?><stream:stream
> xmlns:stream='http://etherx.jabber.org/streams' id='3CD92A23'
> xmlns='jabber:component:accept' from='sip.10.192.72.61'>
>
> component --> jabber server
> <handshake>c27a76bc0817418caf7260d5016ef8b6c29d02b6</handshake>
>
> jabber server --> component
> <handshake/>
>
>
> component --> jabber
> <route to='10.192.72.61' from='sip.10.192.72.61' type='auth'><iq
type='get'
> id='Sip1'><query xmlns=
>
'jabber:iq:auth'><username>lschweiz at 10.192.72.61</username></query></iq></ro
ute>
>
>
> jabber --> component
> <route from='10.192.72.61' to='sip.10.192.72.61' type='auth'><iq
> type='error' id='Sip1'><query
>
xmlns='jabber:iq:auth'><username>lschweiz at 10.192.72.61</username></query><er
ror
> code='406'>Not Acceptable</error></iq></route>
>
>
> _________________________________________________________________
> Discutez en ligne avec vos amis, essayez MSN Messenger :
> http://messenger.msn.com
More information about the JDev
mailing list