[JDEV] register then reconnect?
Dustin Puryear
dpuryear at usa.net
Tue Apr 10 09:59:20 CDT 2001
temas wrote:
>
> I thought this was fixed to work once. Can you send a log of an
> attempted session?
Well, sheesh, I had code that was bombing out trying this very thing.
However, I just wrote some new test code and it appears to work:
$ ./reg_users -s localhost -j crack -t 4 -w 0
buf = <stream:stream to='crack' xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams'>
reg =
<iq type='set' id='3AD31F7F'> <query xmlns='jabber:iq:register'>
<username>test_0</username> <password>password</password>
<resource>work</resource> </query> </iq>
reply =
<iq type='result' id='3AD31F7F'/>
User test_0 created
reg =
<iq type='set' id='3AD31F7F'> <query xmlns='jabber:iq:register'>
<username>test_1</username> <password>password</password>
<resource>work</resource> </query> </iq>
reply =
<iq type='result' id='3AD31F7F'/>
User test_1 created
reg =
<iq type='set' id='3AD31F7F'> <query xmlns='jabber:iq:register'>
<username>test_2</username> <password>password</password>
<resource>work</resource> </query> </iq>
reply =
<iq type='result' id='3AD31F7F'/>
User test_2 created
reg =
<iq type='set' id='3AD31F7F'> <query xmlns='jabber:iq:register'>
<username>test_3</username> <password>password</password>
<resource>work</resource> </query> </iq>
reply =
<iq type='result' id='3AD31F7F'/>
User test_3 created
Regards, Dustin
>
> --temas
>
> On 06 Apr 2001 16:42:17 -0600, David Waite wrote:
> > Hmm, that is odd. I don't see why that should be required - assuming you
> > are registering the user before you authenticate, you should still be set
> > up to authenticate immediately after.
> >
> > -David Waite
> >
> > Peter Saint-Andre wrote:
> >
> > > Yes, the <stream/> basically defines the session, so registering a new
> > > user would be starting a new stream.
> > >
> > > Peter
> > >
> > > Dustin Puryear wrote:
> > > >
> > > > I am working with a very simple Jabber client. It seems that if I
> > > > register a new user I must disconnect and then logon, rather than
> > > > directly logging on after registration using the same stream. Is this
> > > > correct? If so, what is the reasoning behind this?
> > > >
> > > > Regards, Dustin
> > > >
> > > > --
> > > > Dustin Puryear <dpuryear at usa.net>
> > > > http://members.telocity.com/~dpuryear
> > > > In the beginning the Universe was created.
> > > > This has been widely regarded as a bad move. - Douglas Adams
> > > >
> > > > _______________________________________________
> > > > jdev mailing list
> > > > jdev at jabber.org
> > > > http://mailman.jabber.org/listinfo/jdev
> > >
> > > --
> > > Peter Saint-Andre
> > > stpeter at jabber.org
> > >
> > > _______________________________________________
> > > jdev mailing list
> > > jdev at jabber.org
> > > http://mailman.jabber.org/listinfo/jdev
> >
> >
> > _______________________________________________
> > jdev mailing list
> > jdev at jabber.org
> > http://mailman.jabber.org/listinfo/jdev
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
--
Dustin Puryear <dpuryear at usa.net>
http://members.telocity.com/~dpuryear
In the beginning the Universe was created.
This has been widely regarded as a bad move. - Douglas Adams
More information about the JDev
mailing list