[JDEV] removing a user account
Thomas Muldowney
temas at box5.net
Tue May 29 13:07:19 CDT 2001
I know that's been on the cutting table a few times, and I honestly don't know
the current state of it. It used to be an xdb problem (no true remove function
in it), but I'm not sure now. Feedback would be good.
--temas
On Tue, May 29, 2001 at 11:01:20AM -0500, Dustin Puryear wrote:
> temas wrote:
> >
> > Flag in our XMLish realm means a tag with no attributes and no children.
> > In this case you want to use <remove/> in the IQ.
>
> Per an earlier posting <remove/> doesn't actually remove the account. Is
> this true? I attempted it using userreg and received an error:
>
> $ ./userreg -h crack -u 5 -m unregister
> opening connection to crack on port 5222
> sending '<?xml version='1.0' encoding='UTF-8'?> <stream:stream
> to='crack' xmlns='jabber:client'
> xmlns:stream='http://etherx.jabber.org/streams' >'
> received <?xml version='1.0'?><stream:stream
> xmlns:stream='http://etherx.jabber.org/streams' id='3B13C73C'
> xmlns='jabber:client' from='crack'>
> sending <iq type='set' id='3B13C73C'> <query
> xmlns='jabber:iq:register'> <remove/> <username>test_0</username>
> <password>password</password> </query> </iq>
> received <iq type='error' id='3B13C73C'> <query
> xmlns='jabber:iq:register'> <remove/> <username>test_0</username>
> <password>password</password> </query> <error code='409'>Username Not
> Available</error></iq>
> registration failed
>
> Regards, Dustin
>
> >
> > --temas
> >
> > On 24 May 2001 13:17:21 -0500, Dustin Puryear wrote:
> > > Under Registration Requests of the draft standard
> > > (http://docs.jabber.org/proto/html/jabber:iq:register.html) it notes to
> > > use the remove "flag" to remove an account. I assume this means to use
> > > set='remove'? Anyway, I tried that and I am getting the error "Username
> > > Not Available." I know the account exists and am using the correct
> > > password. Am I using this incorrectly? Here is a short sequence of
> > > registering and then trying to unregister, or remove, the account:
> > >
> > > $ ./userreg --hostname crack --users 1 --mode register
> > > opening connection to crack on port 5222
> > > sending '<?xml version='1.0' encoding='UTF-8'?> <stream:stream
> > > to='crack' xmlns='jabber:client'
> > > xmlns:stream='http://etherx.jabber.org/streams' >'
> > > received <?xml version='1.0'?><stream:stream
> > > xmlns:stream='http://etherx.jabber.org/streams' id='3B0D4F70'
> > > xmlns='jabber:client' from='crack'>
> > > sending <iq type='set' id='3B0D4F70'> <query
> > > xmlns='jabber:iq:register'> <username>test_0</username>
> > > <password>password</password> </query> </iq>
> > > received <iq type='result' id='3B0D4F70'/>
> > > sending </stream:stream>
> > > 0 990728048.920311 990728048.952428 0.032117
> > >
> > > $ ./userreg --hostname crack --users 1 --mode unregister
> > > opening connection to crack on port 5222
> > > sending '<?xml version='1.0' encoding='UTF-8'?> <stream:stream
> > > to='crack' xmlns='jabber:client'
> > > xmlns:stream='http://etherx.jabber.org/streams' >'
> > > received <?xml version='1.0'?><stream:stream
> > > xmlns:stream='http://etherx.jabber.org/streams' id='3B0D4F76'
> > > xmlns='jabber:client' from='crack'>
> > > sending <iq type='remove' id='3B0D4F76'> <query
> > > xmlns='jabber:iq:register'> <username>test_0</username>
> > > <password>password</password> </query> </iq>
> > > received <iq type='error' id='3B0D4F76'> <query
> > > xmlns='jabber:iq:register'> <username>test_0</username>
> > > <password>password</password> </query> <error code='409'>Username Not
> > > Available</error></iq>
> > > failed
> > >
> > > 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
> >
> > _______________________________________________
> > 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
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20010529/8c4545ac/attachment-0002.pgp>
More information about the JDev
mailing list