[JDEV] Question... - zero knowledge authentication
Dennis Noordsij
dennis.noordsij at wiral.com
Tue Nov 28 11:31:11 CST 2000
I have followed the below instructions, and yes it does work, I can now log
in using any password :-) (what does a auth error reply look like? is there
any documentation regarding these types of applications?).
However, I only get the <username> and <resource> tags, not a password. I
need a password :-)
How do I have to deviate from the below instructions to get the password as
well?
Kind regards,
Dennis
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