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.
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.
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.
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