0
votes

Hi does anyone have an idea on configuring eJabberd server to allow User Registration for admin accounts only?

This is done through inband registration XEP-0077. Using Smack API as XMPP interface for java.

I tried changing ejabberd.cfg file's

Access Control Lists: {acl, admin, {user, "admin", "myserver.somewhere.here"}.

Access Rule: {access, register, [{allow, admin}, {deny, all}]}.

mod_register: {mod_register, [{access, register}]}.

But it doesn't work.

Thank you.

1

1 Answers

0
votes

Just tested with ejabberd 14.07 and the new YAML syntax:

acl: 
  admin:
     user:
       - "me" : "my.server.tld"

access:
  register:
    admin: allow
    all: deny

and it works.