[JDEV] Question...
Tim Ferguson
tim.ferguson at cw.com
Tue Jan 2 15:58:48 CST 2001
Dennis,
Would you be interested in sharing the perl code you have for the LDAP
authentication?
Tim
-----Original Message-----
From: jdev-admin at jabber.org [mailto:jdev-admin at jabber.org]On Behalf Of
Dennis Noordsij
Sent: Tuesday, November 28, 2000 5:20 AM
To: jdev at jabber.org; Schuyler Heath
Subject: Re: [JDEV] Question...
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
>
_______________________________________________
jdev mailing list
jdev at jabber.org
http://mailman.jabber.org/listinfo/jdev
More information about the JDev
mailing list