Ejabberd user registration command fails with {error,access_rules_unauthorized}

蹲街弑〆低调 提交于 2019-12-07 23:35:36

问题


I've been trying to set up an XMPP server using ejabberd on windows. every time I try to register a user in ejabberd with this command:

ejabberdctl register admin localhost admin

it gives me this error:

{error,access_rules_unauthorized}

I've installed the ejabberd using its binary installer and according to "install.log" file, the installer also fails to create a user due to the same error.

Part of the log file:

E:\Program Files\ejabberd-16.08\bin>bash ejabberdctl register "admin" "localhost" "admin" 
{error,access_rules_unauthorized}

ejabberd.yml config file:

access_rules:
  register:
    - allow

I've gone even to the 100th search of the google, but found nothing similiar yet. So any help on how to fix this is strongly appreciated.


回答1:


It seems like this is an error in ejabberd 16.08 and has been fixed in the git master.

For the corresponding issue, see https://github.com/processone/ejabberd/issues/1231.




回答2:


Try version 16.06 instead of 16.08 from downloads archive https://www.process-one.net/en/ejabberd/archive/ It solved my issue on Centos.




回答3:


Version 16.06 work for me in windows10, before installation keep firewall off.



来源:https://stackoverflow.com/questions/38810951/ejabberd-user-registration-command-fails-with-error-access-rules-unauthorized

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!