Users are not allowed to register accounts so fast

Hi all,

I have integrated this IM server to my application with JW chat. Now I am facing an issue with chat user creation. When I try to create user dynamically through the application it shows an error response xml (check the below xml- Second RESPONSE) and terminated the connection.

Is there any configuration to change this? I want to create multiple users from a single system (IP).

I am using http-bind method.

Any one know about this, please help me.

thanks in advance
Jey

First POST

<body content='text/xml; charset=utf-8' hold='1' xmlns='http://jabber.org/protocol/httpbind' to='192
.168.0.102' wait='280' rid='519287' route='xmpp:192.168.0.102:5280' secure='true' newkey='1a2aac52c2f05c86ee6323969af7c19d4d00cb0d'
ver='1.6' xmlns:xmpp='urn:xmpp:xbosh' xmpp:version='1.0'/>

First RESPONSE

<body xmlns='http://jabber.org/protocol/httpbind' sid='1c2e8276b24fcde2be170d0190bef79f9ca93af6' wait
='280' requests='2' inactivity='30' maxpause='120' polling='2' ver='1.6' from='192.168.0.102' secure
='true' authid='3665474818' xmlns:xmpp='urn:xmpp:xbosh' xmlns:stream='http://etherx.jabber.org/streams'
xmpp:version='1.0'><stream:features xmlns:stream='http://etherx.jabber.org/streams'><mechanisms xmlns
='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms
><register xmlns='http://jabber.org/features/iq-register'/></stream:features></body>

Second POST

<body rid='519288' sid='1c2e8276b24fcde2be170d0190bef79f9ca93af6' xmlns='http://jabber.org/protocol/httpbind'
key='dac15b48d81a80445565c657c4da84ef6ce344ee' ><iq xmlns="jabber:client" type="set" id="reg1"><query
xmlns="jabber:iq:register"><username>user75</username><password>passuser75
</password></query></iq></body>

Second RESPONSE

<body xmlns='http://jabber.org/protocol/httpbind'><iq xmlns='jabber:client' from='192.168.0.102' id='reg1'
type='error'><query xmlns='jabber:iq:register'><username>user75</username><password>passuser75
</password></query><error code='500' type='wait'><resource-constraint xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'
/><text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Users are not allowed to register accounts so fast
</text></error></iq></body>

Third POST

<body rid='519289' sid='1c2e8276b24fcde2be170d0190bef79f9ca93af6' xmlns='http://jabber.org/protocol/httpbind'
key='4eb213bbc2c7896cc22b7140255cd3e51b3a6f30' />

Third RESPONSE

<body type='terminate' xmlns='http://jabber.org/protocol/httpbind'/>

Check the option registration_timeout

Is there any configuration to change this?

Yes, search in the ejabberd Guide. You can add this option to ejabberd.cfg

{registration_timeout, infinity}.

Can you please explain me

Can you please explain me what it is and where do I put in ejabberd.cfg.

I have tried everywhere but unable to create multiple a/c from one user .

Syndicate content