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

Richard Dobson richard at dobson-i.net
Thu Aug 18 05:42:09 CDT 2005


>I investigated a little bit more on the possibility for a component
> to pretent to be a user. From a connected service, I tried to send
> a regular jabber:iq:auth iq set packet. Whatever the packet looked
> like, it was ignored by the Jabber server with the following log
> message:
>
> 20050818T10:13:10: [warn] (-internal): Packet Delivery Failed,
> invalid packet, dropping <iq type='set'
> to='xxxx.net'><query
> xmlns='jabber:iq:auth'><username>xxx</username><password>xxx</password></query></iq>
>
> I am wondering if it's completely impossible to operate a component
> and a client within the same XML stream, so I have to open a new
> connection for every client, or if there is still a way to do so?

Yes its impossible for something to login as multiple users when 
masquerading as a client over one connection (as actual clients dont and 
cant do that, why would they even want to?), if your component must 
masquerade as a client to the server it must act like one, i.e. for each 
user it must establish a separate connection.

Another solution you might want to look into is using the component protocol 
to connect to the server depending on what you are trying to do this might 
work for you:
http://www.jabber.org/jeps/jep-0114.html

Richard





More information about the JDev mailing list