首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当我使用postman访问ejabberd的注册api时,我收到错误AccessRules: Account无权执行该操作

当我使用postman访问ejabberd的注册api时,我收到错误AccessRules: Account无权执行该操作
EN

Stack Overflow用户
提问于 2018-01-05 19:03:24
回答 1查看 798关注 0票数 2
代码语言:javascript
复制
What version of ejabberd are you using?

17.04

代码语言:javascript
复制
What operating system (version) are you using?

ubuntu 16.04

代码语言:javascript
复制
How did you install ejabberd (source, package, distribution)?
package

What did not work as expected? Are there error messages in the log? What
was the unexpected behavior? What was the expected result?

我使用postman向ejabberd register api发出HTTP请求。ejabberd设置完成,管理员在url - http://localhost:5280/admin上正常运行。

http请求Url为- http://localhost:5280/api/register

Body -{ "user":"bob","host":"example.com","password":"SomEPass44“}

Header - {"key":"Content-Type","value":"application/json","description":""}

响应-{ "status":"error","code":32,"message":"AccessRules:账号无权执行此操作。“}

我搜索了很多,发现它需要在ejabberd.yml文件中做一些修改。我的yml文件可以在所附的链接上找到。

THIS LINK CONTAINS YML FILE

任何帮助都会很好。

EN

回答 1

Stack Overflow用户

发布于 2018-06-02 00:59:09

在配置文件/opt/ejabberd/conf/ejabberd.yml中

查找api_permissions更改公共命令的值谁和什么。将您的代码与下面提到的代码进行比较。

请看这篇文章:

http://www.centerofcode.com/configure-ejabberd-api-permissions-solve-account-not-right-perform-operation-issue/

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48112259

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档