[JDEV] removing a user account
temas
temas at box5.net
Mon May 28 10:41:35 CDT 2001
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.
--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
More information about the JDev
mailing list