asmack XMPP new user registration

后端 未结 7 1360
鱼传尺愫
鱼传尺愫 2021-02-04 20:50

Good people of StackOverflow, please help. I\'ve set up an ejabberd server on my ubuntu machine, added virtual host, set {access, register, [{allow, all}]}. and registered

7条回答
  •  迷失自我
    2021-02-04 21:08

    Had you specified the ip_access option in mod_register? If Pidgin and your ejabberd server are somehow both using the same IP, then a default rule that looks something like this:

    {mod_register, [
        ...
        %%
        %% Only clients in the server machine can register accounts
        %%
        {ip_access, [{allow, "127.0.0.0/8"},
                     {deny, "0.0.0.0/0"}]},
        ...
    ] ...
    

    would allow both of those IPs to register accounts, but not an Android client that was using a different IP.

    I've been facing a related problem, and for some reason the {access_from, register_from} solution that worked for you did not work as expected for me. Were you able to restrict the ability to create new accounts to only an admin user?

提交回复
热议问题