Registration Access for a Specific User

How to limit user registration for a specific user only?

I tried modifying my ejabberd.cfg file to limit the users who can register user like for example an admin/registrar, which can be done via In-band registration.

I tried this:

ACCESS CONTROL LISTS:
{acl, registrar, {user, "jed", "hostname.somewhere.com"}}.

ACCESS RULE:
{access, register, [{allow,registrar},{deny,all}]}.

But it doesn't work.

I hope you guys have tried this, or do you have any ideas how to implement this?

Thank you.

Syndicate content