XMPP 503 service-unavailable

1.1k Views Asked by At

I did some tinkering with my .cfg file, then put everything back to normal.

I can still connect then authenticate, but cannot register new users. Well, I have never been able to register users.

I'm using XMPPFramework for Obj-C with bridging from Swift to do something like this:

...
Static.xmppStream!.registerWithPassword("123", error: &error)
...

I don't think anything is wrong with the code, but it's something with the ejabberd server configuration.

I have:

{access, register, [{allow, all}]}.

and

{mod_register, [
    ...
    {access, register, [{allow, all}]}

in my configuration.

2

There are 2 best solutions below

1
On

I ended up grabbing the cfg file from here, and reconfiguring it.

0
On

mod_register should be like this:

  mod_register:
     access_from: allow
     access: all