【问题标题】:Error creating new user account on ejabberd server from asmack android从 asmack android 在 ejabberd 服务器上创建新用户帐户时出错
【发布时间】: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


【解决方案1】:

我也面临同样的问题,但毕竟我找到了解决方案。所以加mod_registerlike

{access,mod_register, [{access_from, register}]},

ejabberd 服务器上的访问规则中。也许会有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-05-31
    • 2019-11-21
    • 1970-01-01
    • 2017-04-22
    • 2015-04-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多