Unregister problems (or How do I send messages?) during testing

Hi,

I'm performing some tests on the ejabberd server as a part of my Bachelor's Thesis. What I want to is to simulate a lot of users doing stuff on the server. Right now my tests are registering users to enable them to send messages to each other. However when I want to cleanup after the tests I cannot unregister the users, I instead recieve this answer:

< iq from='localhost' id='unreg1' type='error>
    < query xmlns='jabber:iq:register'>
        "<"remove/">"                                                              
    < /query>
    < error code='405' type='cancel'>< not-allowed xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>< /error>
< /iq>

Reading the in-band registration JEP tells me that that means that the server does not allow in-band unregister. So my problem is either to find a fix so that I can unregister, OR could someone tell me how to use the server with users that haven't registered? Sending messages without having registered before results in no messages being delivered. How could I achieve this?

Thanks in advance! (Excuse me for the ugly XML but your forum seems to have problems with XML posting...)

Since i don't see "to"

Since i don't see "to" attribute in the stanza, i assume that you're trying to unregister someone without being authenticated. If it were possible then everyone could unregister any user he wants. I don't think that that would be true behavior.

Of course

Of course that was the problem, stupid me! :-)

// Adam

Syndicate content