processone / ejabberd

Robust, Ubiquitous and Massively Scalable Messaging Platform (XMPP, MQTT, SIP Server)
https://www.process-one.net/en/ejabberd/
Other
6.07k stars 1.51k forks source link

In-Band registeration in Ejabberd 22.05 #3897

Closed Vladimir7i closed 2 years ago

Vladimir7i commented 2 years ago

Environment

Configuration (only if needed): grep -Ev '^$|^\s*#' ejabberd.yml

loglevel: 4
...

Errors from error.log/crash.log

No errors

Issue description

How to enable In-Band registeration for version 22.05? I use S22.Xmpp(c#) as client for Unity(game)

In version ejabberd version: 18.09 In-Band registeration work as well, but after update to 22.05 I can't registrate user by using game client because of [Access denied by service policy]

XML body of error:

someUserName someUserPassword Access denied by service policy
licaon-kter commented 2 years ago

Clean up and put config on https://gist.github.com

Did you read https://docs.ejabberd.im/admin/configuration/modules/#mod-register yet?

Vladimir7i commented 2 years ago

I have default cfg from clear installation, but I can't add there:

In-band registration allows registration of any possible username. To disable in-band registration, replace 'allow' with 'deny'. register: all: allow

Server wont startup with this parameter, how to enable In-band registration?

licaon-kter commented 2 years ago

pls attach config

Vladimir7i commented 2 years ago

link to cfg

licaon-kter commented 2 years ago
acl:
  loopback:
    ip:
      - 127.0.0.0/8
      - ::1/128

access_rules:
  trusted_network:
    allow: loopback

  mod_register:
    ## Only accept registration requests from the "trusted"
    ## network (see access_rules section above).
    ## Think twice before enabling registration from any
    ## address. See the Jabber SPAM Manifesto for details:
    ## https://github.com/ge0rg/jabber-spam-fighting-manifesto
    ip_access: trusted_network
    access: register

I see no errors here, you can register new users ONLY FROM 127.0.0.1 via ejabberdctl register ... the comment is pretty clear, right?

Vladimir7i commented 2 years ago

Thanks=)

licaon-kter commented 2 years ago

/close if fixed