ejabberd_http_auth 插件中的未知选项 'auth_opts' 问题
Unknown option 'auth_opts' issue in ejabberd_http_auth plugin
我目前使用 ejabberd_http_auth mod 通过外部 http api 验证用户。但是,在 ejabberd.yml 中设置了以下配置之后。我收到未知选项 'auth_opts' 错误。
我已经使用命令提示符在 ejabberd 中安装了该插件,并且我已禁用注册 mod.
配置:
auth_method: http
auth_opts:
host: "http://localhost:8080"
connection_pool_size: 10
connection_opts: []
basic_auth: ""
path_prefix: "/test/auth/"
错误信息:
2015-12-15 00:16:16.268 [error] <0.37.0>@ejabberd_config:validate_opts:794 unknown option 'auth_opts' will be likely ignored
2015-12-15 00:16:16.366 [info] <0.37.0>@cyrsasl_digest:start:60 FQDN used to check DIGEST-MD5 SASL authentication: MY_SERVER
2015-12-15 00:16:16.367 [info] <0.37.0>@ejabberd_app:add_windows_nameservers:195 Adding machine's DNS IPs to Erlang system:
[]
2015-12-15 00:16:16.373 [error] <0.36.0> CRASH REPORT Process <0.36.0> with 0 neighbours exited with reason: call to undefined function ejabberd_auth_http:start(<<"localhost">>) in application_master:init/4 line 133
2015-12-15 00:16:16.373 [info] <0.7.0> Application ejabberd exited with reason: call to undefined function ejabberd_auth_http:start(<<"localhost">>)
非常感谢。
未知选项不是这里的问题。
问题出在那行:
2015-12-15 00:16:16.373 [info] <0.7.0> Application ejabberd exited with reason: call to undefined function ejabberd_auth_http:start(<<"localhost">>)
这意味着 ejabberd_auth_http.beam
不在你的 Erlang 路径中。这意味着它没有安装或放置在 Erlang VM 路径之外。
我目前使用 ejabberd_http_auth mod 通过外部 http api 验证用户。但是,在 ejabberd.yml 中设置了以下配置之后。我收到未知选项 'auth_opts' 错误。 我已经使用命令提示符在 ejabberd 中安装了该插件,并且我已禁用注册 mod.
配置:
auth_method: http
auth_opts:
host: "http://localhost:8080"
connection_pool_size: 10
connection_opts: []
basic_auth: ""
path_prefix: "/test/auth/"
错误信息:
2015-12-15 00:16:16.268 [error] <0.37.0>@ejabberd_config:validate_opts:794 unknown option 'auth_opts' will be likely ignored
2015-12-15 00:16:16.366 [info] <0.37.0>@cyrsasl_digest:start:60 FQDN used to check DIGEST-MD5 SASL authentication: MY_SERVER
2015-12-15 00:16:16.367 [info] <0.37.0>@ejabberd_app:add_windows_nameservers:195 Adding machine's DNS IPs to Erlang system:
[]
2015-12-15 00:16:16.373 [error] <0.36.0> CRASH REPORT Process <0.36.0> with 0 neighbours exited with reason: call to undefined function ejabberd_auth_http:start(<<"localhost">>) in application_master:init/4 line 133
2015-12-15 00:16:16.373 [info] <0.7.0> Application ejabberd exited with reason: call to undefined function ejabberd_auth_http:start(<<"localhost">>)
非常感谢。
未知选项不是这里的问题。
问题出在那行:
2015-12-15 00:16:16.373 [info] <0.7.0> Application ejabberd exited with reason: call to undefined function ejabberd_auth_http:start(<<"localhost">>)
这意味着 ejabberd_auth_http.beam
不在你的 Erlang 路径中。这意味着它没有安装或放置在 Erlang VM 路径之外。