processone / ejabberd-contrib

Growing and curated ejabberd contributions repository - PR or ask to join !
http://ejabberd.im
248 stars 137 forks source link

Failed with error: "inexistent-account" #246

Closed adiii717 closed 6 years ago

adiii717 commented 6 years ago

I tried to configure auth_method: http in ejabberd.yml.

The first thing my node server API never get called from ejabberd.

Here is my configuration.

auth_method: http
auth_opts:
  host: "http://192.168.1.23:3000"
  connection_pool_size: 10
  connection_opts: []
  basic_auth: ""
  path_prefix: "/"

But i tried to login using admin panel got below error.

[warning] <0.485.0>@ejabberd_web_admin:process:246 Access of <<"admin@localhost">> from <<"::ffff:172.17.0.1">> failed with error: <<"inexistent-account">> Thanks.

adiii717 commented 6 years ago

I was running inside docker and I did not install ejabberd_auth_http module. I thought it should be by default.

I installed by following way.

First, update all contrib modules run below command.

ejabberdctl modules_update_specs

once update then check for available modules.

ejabberdctl modules_available

then install it

ejabberdctl module_install ejabberd_auth_http

enjoy :+1: :)