我已配置ejabbered以通过mysql表验证用户,配置后我尝试启动模块时mod_last_odbc未启动。这是ejabberd.cfg的详细信息。
{auth_method, odbc}.
{odbc_server, {mysql, "localhost", 3306, "ejabberd", "root", "password"}}.
{access, max_user_sessions, [{10, all}]}.
{modules,
[
{mod_adhoc, []},
{mod_disco, []},
{mod_last_odbc, []},
{mod_stream_management, [
]},
{mod_muc, [
{host, "muc.@HOST@"},
{access, muc},
{access_create, muc_create}
]},
{mod_muc_log,
[
{outdir, "/tmp/muclogs"},
{access_log, muc}
]},
{mod_offline_odbc, [{access_max_user_messages, max_user_offline_messages}]},
{mod_privacy_odbc, []},
{mod_private_odbc, []},
{mod_register, [
{welcome_message, {""}},
{ip_access, [{allow, "127.0.0.0/8"},
{deny, "0.0.0.0/0"}]},
{access, register}
]},
{mod_roster_odbc, []},
{mod_sic, []},
{mod_vcard_odbc, [ {allow_return_all, true},
{search_all_hosts, true}
]},
{mod_bosh, []},
{mod_websockets, []},
{mod_metrics, []},
{mod_carboncopy, []}
]}.
答案 0 :(得分:1)
无需将_odbc添加到所有模块。只需将 auth_method 更改为 odbc ,然后在完成工作后再提供 odbc_server 详细信息。