[JDEV] Question...
Dennis Noordsij
dennis.noordsij at wiral.com
Tue Nov 28 06:19:58 CST 2000
Hey list and Schuyler,
the information below works, thanks a lot for that! But I can't seem to find
anything in Jabber::Net that supports the <route></route> message that is
sent by jabberd to this component. I have a callback for "receive" that does
receive this message but it doesn't seem to fit in any of the classes
Jabber::Net provides.
I guess I have to do the XML parsing of this thing myself, but I thought I'd
just check with everyone to see if maybe I am missing something obvious :)
Dennis
BTW Thanks again Schuyler!
On Monday 27 November 2000 16:35, Schuyler Heath wrote:
> Hello,
>
> auth components are not written as xdb components, they are services or jsm
> modules.
>
> Here is what the configuration could look like:
>
> <service id="perlauth">
> <accept>
> <ip>127.0.0.1</ip>
> <port>2233</ip>
> <secret>secret</secret>
> </accept>
> </service>
>
> There is no need to have a <host/>, auth packets will be routed to your
> component with the id. You will also need to add this to your jsm config.
>
> <service id="sessions">
> ...
> <jsm xmlns="jabber:jsm:config">
> ..
> <auth>perlauth</auth>
> </jsm>
> </service>
>
> You then will receive the following when a user attempts to authenticate:
>
> <route type='auth' from='2 at jpolld.localhost/134566776' to='perlauth'
> oto='test at localhost'> <iq type='set' id='0'>
> <query xmlns='jabber:iq:auth'>
> <username>test</username>
> <password>foo</password>
> <resource>home</resource>
> </query>
> </iq>
> </route>
>
> A successful result would look like this:
>
> <route type='auth' to='2 at jpolld.localhost/134566776' from='perlauth'
> oto='test at localhost'> <iq type="result" id="0"/>
> </route>
>
> Schuyler
>
More information about the JDev
mailing list