[JDEV] removing a user account
Dustin Puryear
dpuryear at usa.net
Thu May 24 13:17:21 CDT 2001
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
More information about the JDev
mailing list