0

您好,我是 ejabberd 的新手,我有一个问题要解决。我在 ubuntu (machine1) 上安装了 ejabberd 15(我的机器有 32 位,最新版本的 ejabberd 不适用于我的机器),我无法注册用户这是我的步骤

1)我安装了ejabberd并启动了实例

2)我安装了一个xmpp客户端(我正在使用PSI)

3)新用户的注册和登录在本地机器上使用PSI完美地工作

4)我在另一台机器(machine2)上安装了 PSI,我试图注册一个新用户,但 ejabberd 说我没有这个操作的权限

5)然后我使用管理Web界面注册了一个新用户,我尝试从machine2使用这个新用户登录,现在用户可以登录

注意:machine1 在 nat 后面,我访问 trought 端口转发配置(但没问题,因为我重复第二个用户可以登录,如果在管理 Web 界面注册)

看来我必须更改 ejabberd 的 yaml 配置文件中的一些参数,但是什么?

我发布完整的配置文件,谢谢

  ###   ACCESS RULES
    access:
         ## Maximum number of simultaneous sessions allowed for a single user:
      max_user_sessions: 
        all: 10
  ## Maximum number of offline messages that users can have:
  max_user_offline_messages: 
    admin: 5000
    all: 100
  ## This rule allows access only for local users:
  local: 
    local: allow
  ## Only non-blocked users can use c2s connections:
  c2s: 
    blocked: deny
    all: allow
  ## For C2S connections, all users except admins use the "normal" shaper
  c2s_shaper: 
    admin: none
    all: normal
  ## All S2S connections use the "fast" shaper
  s2s_shaper: 
    all: fast
  ## Only admins can send announcement messages:
  announce: 
    admin: allow
  ## Only admins can use the configuration interface:
  configure: 
    admin: allow
  ## Admins of this server are also admins of the MUC service:
  muc_admin: 
    admin: allow
  ## Only accounts of the local ejabberd server can create rooms:
  muc_create: 
    local: allow
  ## All users are allowed to use the MUC service:
  muc: 
    all: allow
  ## Only accounts on the local ejabberd server can create Pubsub nodes:
  pubsub_createnode: 
    local: allow
  ## In-band registration allows registration of any possible username.
  ## To disable in-band registration, replace 'allow' with 'deny'.
  register: 
    all: allow
  ## Only allow to register from localhost
  trusted_network: 
    loopback: allow
  ## Do not establish S2S connections with bad servers
  ## s2s:
  ##   bad_servers: deny
  ##   all: allow

   ## By default the frequency of account registrations from the same IP
   ## is limited to 1 account every 10 minutes. To disable, specify: infinity
   ## registration_timeout: 600

   ##
   ## Define specific Access Rules in a virtual host.
4

0 回答 0