[JDEV] Remove user registration

Ralph Siemsen ralphs at blueairnetworks.com
Wed May 14 15:48:39 CDT 2003

Ru-Shan Cheng wrote:

I just posted a very similar question :)

> 1. What is the difference between unregistering a user and using the <remove/> tag?
>    unregister : cannot login, and leave spool file?
>    remove: remove user's spool file?

I am not clear about this - only the <remove> method seems to be
documented.  Looking throught the source code, the only references to an
"unregister" method are for mod_groups and the transports.

> 2. In 'Programming Jabber', the bottom of page 218,
>    it said that the <remove/> tag has to be used in user session.
>    Is there any method to remove an user's registration in non-user session?

I have not been able to find one.  You have to log the user in and issue
the commands.  Yes, this is less than ideal. :(

> 3. I can't remove my registration using the method described in FAQ.17 
>    at http://www.jabber.org/user/userfaq.html
>    <iq type='set' to='jabber.org'> 
>     <query xmlns='jabber:iq:register'> 
>      <remove/>
>      </query> 
>    </iq>

That worked for me - after logging in the user (jabber:iq:auth) and
sending the above fragment, the user spool file was modified.  The
<password/> section was removed along with some other parts.  Hoever the
file itself was not removed, and the zerok authentication information
remained.  This allowed me to continue to log in using zerok
authentication.  I'd call that a bug, but I am still trying to figure
out how it was meant to work.


More information about the JDev mailing list