Closed doshiankit closed 7 years ago
Anyone please atleast explain me how can i resolve this issue ? or in which cases i am getting below error ?
Error : {"status":"error","code":31,"message":"Command need to be run with admin priviledge."}
Like from which places i can configured commands can be executable for all users
Check the comments at the beginning of the mod_http_api.erl file, they show some example config. For example, try to configure like this, which allows to change the password making requests from local machine:
listen:
-
port: 5280
module: ejabberd_http
request_handlers:
"/api": mod_http_api
modules:
mod_http_api:
admin_ip_access: admin_ip_access_rule
access:
admin_ip_access_rule:
admin_ip_acl:
- change_password
acl:
admin_ip_acl:
ip:
- "127.0.0.1/8"
latest implementation is documented here https://docs.ejabberd.im/developer/ejabberd-api/permissions/
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Hello All,
I am using ejabberd version 16.08.28. From debian 8 In which i am trying to use api with below curl request. In which i am trying to change_password of existing user but in every case i am getting Some errors. So will you please help me out if possible ?
My ejabberd,yml code looks like below