Creating new user with Smack on ejabberd throws XMPP Exception: forbidden(403)

前端 未结 4 1072
感动是毒
感动是毒 2021-01-05 11:10

Hi I am working on ejabberd and I am quite new to this technology.

I am trying to add a user on my ejabberd server using this code:

  try {                  


        
4条回答
  •  暖寄归人
    2021-01-05 11:27

    Goto C:\Program Files (x86)\ejabberd-2.1.8\conf (in my case) folder & open ejabberd.cfg file using Notepad++ (it is easy to edit using it).

    In the file do the following changes:

    %% Put this in the section ACCESS RULES
    {access, register_from, [{allow, admin}]}.
    
    %% Change mod_register so it contains the new access rule:
    
    {mod_register, [
              {access_from, register_from},
               ...
                        ] ...
    

提交回复
热议问题