processone / docker-ejabberd

Set of ejabberd Docker images
95 stars 77 forks source link

Account creation fails with permission error #25

Closed paulmenzel closed 5 years ago

paulmenzel commented 5 years ago

Following the instructions in ecs/README.md to create an account, it fails with the error below.

$ sudo docker exec -it ejabberd bin/ejabberdapi register --endpoint=http://127.0.0.1:5280/ --jid=admin@localhost --password=passw0rd
ejabberdapi: error: user registration error for admin@localhost: Error 32: AccessRules: Account does not have the right to perform the operation.
paulmenzel commented 5 years ago

The lines below are in logs/ejabberd.log.

2018-11-19 17:19:55.354 [info] <0.314.0>@ejabberd_listener:accept:221 (<0.647.0>) Accepted connection ::ffff:127.0.0.1:55800 -> ::ffff:127.0.0.1:5280
2018-11-19 17:19:55.355 [info] <0.647.0>@mod_http_api:log:543 API call register [{<<"user">>,<<"admin">>},{<<"host">>,<<"localhost">>},{<<"password">>,<<"passw0rd">>}] from ::ffff:127.0.0.1:55800
paulmenzel commented 5 years ago

I used the wrong hostname. The configuration file ejabberd.yml contains the lines below.

hosts:
  - "xmpp.molgen.mpg.de"

Therefore, I had to use @xmpp.molgen.mpg.de. (Though I’ll need to change that to get rid of the xmpp in there.)