Closed ArsiKbArsikLR closed 4 months ago
ejabberd version: 18.09
Are you really using that ejabberd version?
You only provide some parts of your configuration file, but forget the important ones: acl
, access_rules
and api_permissions
.
And the few lines that you copied, apparently are wrongly copied or wrongly set.
This configuration will work:
acl:
admin:
user: admin@localhost
access_rules:
configure:
allow: admin
api_permissions:
"webadmin":
from: ejabberd_web_admin
who: admin
what: "*"
The log says "starting 23.01"
I fixed my configuration file:
admin:
user:
- "admin@localhost"
local:
user_regexp: ""
loopback:
ip:
- 127.0.0.0/8
- ::1/128
auth_method: sql
sql_type: mysql
sql_server: "localhost"
sql_database: "ejabberd"
sql_username: "admin"
sql_password: "1234"
access_rules:
configure:
allow: admin
api_permissions:
"webadmin":
from: ejabberd_web_admin
who: admin
what: "*"
"console commands":
from:
- ejabberd_ctl
who: all
what: "*"
"admin access":
who:
access:
allow:
- acl: loopback
- acl: admin
oauth:
scope: "ejabberd:admin"
access:
allow:
- acl: loopback
- acl: admin
what:
- "*"
- "!stop"
- "!start"
"public commands":
who:
ip: 127.0.0.1/8
what:
- status
- connected_users_number```
But anyway nothing has changed.
If your current instalaltion doesn't work at all, you can try this:
hosts
option. Restart ejabberd. Does everything work perfectly?If something does not work, please explain in what step number did you find the problem, and all the changes you made to the configuration file.
Thank you so much. Now everything is working!
Before creating a ticket, please consider if this should fit the discussion forum better.
Environment
erl +V
Configuration (only if needed): grep -Ev '^$|^\s*#' ejabberd.yml