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

Konstantin Klyagin k at thekonst.net
Fri Aug 19 07:34:40 CDT 2005


On Thu, Aug 18, 2005 at 07:53:18AM -0400, Katz, Dov B (IT) wrote:

Thanks a lot for your answer. I still have some questions though.

> I have ldapauth.dovkatz.com which is an external "accept"
> component handling auth.  This was possible in jabberd 1.4.2x by
> having <auth>jid</auth> in the config... So first you make your
> own unique JIDs up for your local component's "user sessions". 
> This allows you to segregate incoming routed traffic.

Is it possible to implement the same scheme with the default auth
component and xdb as a user info storage?

> SEND:
>  <route to="dovkatz at dovkatz.com/super"
> from="someCustomJID at webclients.dovkatz.com/SomeResource" id="CTG-C2S-0"
> type="auth">
>  <iq to="dovkatz at dovkatz.com/super" id="189" type="set">
>   <query
> xmlns="jabber:iq:auth"><username>dovkatz</username><password>*******</pa
> ssword><resource>super</resource>
>   </query>
>  </iq>
>  </route>

> RECV:
>  <route to="someCustomJID at webclients.dovkatz.com/SomeResource"
> from="ldapauth.dovkatz.com" id="CTG-C2S-0" type="auth">
>  <iq id="189" type="result"><query
> xmlns="jabber:iq:auth"><username>dovkatz</username><resource>super</reso
> urce></query>
>  </iq>
>  </route>

I tried to do the same, but my transcript looks different:

[IN]<handshake/>

So as soon as I complete the component auth, I do:

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

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

Using <route/> stanzas sounds like a good idea. I wish I could get
through this "Not Acceptable" problem. Thanks again.

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



More information about the JDev mailing list