【发布时间】:2016-10-24 06:01:47
【问题描述】:
我正在尝试从 android asmack 库在 ejabberd 服务器上注册一个新用户,但它给了我以下错误:
org.jivesoftware.smack.XMPPException$XMPPErrorException: XMPPError:
forbidden - auth
我已经在 ejabberd 服务器上进行了一些更改,请检查我是否犯了任何错误:
{访问、注册、[{allow, all}]}。
但我仍然遇到同样的错误。
{mod_register, [
%%
%% After successful registration, the user receives
%% a message with this subject and body.
%%
{welcome_message, {"Welcome!",
"Welcome to a Jabber service powered by De$
"For information about Jabber visit "
"http://www.jabber.org"}},
%% Replace it with 'none' if you don't want to send such mess$
%%{welcome_message, none},
%%
%% When a user registers, send a notification to
%% these Jabber accounts.
%%
%%{registration_watchers, ["admin1@example.org"]},
{access_from, register}
]},
【问题讨论】:
-
请分享 mod_register 模块配置详情。
-
我更新我的问题请检查知道!
-
请检查是否在访问规则中定义了trusted_network 并设置为允许+注册者允许所有。请分享您正在使用的 ejabberd 服务器版本。
标签: android amazon-ec2 ejabberd asmack