Ejabberd Resource Constraint: Users are not allowed to register accounts so fast

When I incorporated Jabber our setup I had a whole lot of already registered users that I needed to register with my Jabber server and to do that I ran a script that would do just that.

The second record in the registration script threw this error

Ejabberd Resource Constraint: Users are not allowed to register accounts so fast

The error occurs because the default configuration allows only 1 user in 10 mins to register with the ejabberd server from a given ip. If all your users would be registering from your server then this would surely become an issue. The solution for this is to add this option to your ejabberd.cfg file

%% Every username can be registered via in-band registration:
%% To disable in-band registration, replace ‘allow’ with ‘deny’.
{access, register, [{allow, all}]}.
{registration_timeout, infinity}.

This simply eliminates the time limit.

This might come in handy too http://www.ejabberd.im/node/3003

Though this issue is documented on the ejabberd.im site I am just adding this purely for my own reference and for others who stumble upon this as the first resource.

Hope this helps.

Advertisements

2 thoughts on “Ejabberd Resource Constraint: Users are not allowed to register accounts so fast

  1. In my iOS test client, the error still displayed. I have no idea, I think it has a version issue on it. please help me. I setup ejabberd on win platform.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s