【问题标题】:Custom auth module in ejabberd 17.07ejabberd 17.07 中的自定义身份验证模块
【发布时间】:2018-01-02 02:58:02
【问题描述】:

在 ejabberd 16.02 中,我有一个自定义身份验证模块在工作。它被命名为ejabberd_auth_component.beam,并放置在正确的目录中。然后,我在配置中设置了auth_method: component。然后 ejabberd 将使用自定义模块(前提是它实现了正确的功能)。

这在 ejabberd 17.07 中不再有效。 ejabberd 现在忽略 auth_method: component 作为无效的选项类型。有没有办法让自定义身份验证模块在 17.07 中工作?我一直在阅读更新后的代码库,但还没有找到添加新身份验证方法的方法。

【问题讨论】:

    标签: erlang xmpp ejabberd ejabberd-auth


    【解决方案1】:
    1. 确保在模块中正确定义了所有(非可选)回调:https://github.com/processone/ejabberd/blob/17.07/src/ejabberd_auth.erl#L70
    2. 确保您的模块中有-behaviour(ejabberd_auth). 编译器指令。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-10-03
      • 2017-01-26
      • 2014-05-05
      • 1970-01-01
      • 2020-07-27
      • 2020-04-01
      • 2022-12-10
      • 2020-12-25
      相关资源
      最近更新 更多