[ejabberd] Add users to acl automatically

Badlop badlop at gmail.com
Thu May 30 14:03:39 MSK 2013


On 23 April 2013 20:51, Michael Holm <hollo at hollo.dk> wrote:
> acl, { muc_admin... }
>
> now, i want somehow to add users to this list, i can do it with the admin
> webinterface on the fly, but thats so much manual work, are there any way i
> can do it with some script?

Edit a text file with the ACLs you want to add, and then load that
text file as a configuration file:

$ cat /tmp/acls.cfg
{acl, admin, {user, "userauto1", "localhost"}}.
{acl, admin, {user, "userauto2", "localhost"}}.

$ ejabberdctl load_config /tmp/acls.cfg

This trick doesn't work with most ejabberd options like modules, hosts
and listeners. It only works with simple ones like acls and access.

--
Badlop
ProcessOne


More information about the ejabberd mailing list