[JDEV] Unregister (delete user) how?

Dustin Puryear dpuryear at usa.net
Tue May 29 11:00:21 CDT 2001


David Waite wrote:
> There is no standard way to delete users for reuse - just to disable the
> accounts, as you have found. The neccessary steps to delete the user

Wait.. so <remove/> does NOT remove the account? It merely disables it?
This doesn't jive with the Jabber Protocol Standard document, which
states that "The remove/ flag will remove the account" at
http://docs.jabber.org/proto/html/jabber:iq:register.html.

$ ./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

> from the system will be to disable the account, to kick off all online
> user sessions on that account, to send presence unsubscriptions to all
> the users on the roster, and delete all data relating to the user. The
> first three are pretty simple, the last is very difficult; no mechanism
> in place and no simple rules exist to identify what data belongs to a
> user.
> 
> -David Waite
> 
> Lars Petersen wrote:
> 
> > I've tried to send:
> >
> >  <iq type="set" id="1234" to="jabberserver">
> >   <query xmlns="jabber:iq:register">
> >    <remove/>
> >    <key>
> >     da3a292ba68e00c40ee0566af517c80c965b85a8
> >    </key>
> >   </query>
> >  </iq>
> >
> > Key and stuff is made up here, I get this from the server:
> >
> >  <iq type='result' id='1234'
> >      to='me at jabberserver/myres' from='jabberserver'/>
> >
> > But the user still exists, and when I try to create a new
> > account with the same name I get "Username not available"...
> >
> > How may I delete a user from the system?
> >
> > Regards,
> >
> > Lars
> > _______________________________________________
> > 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