[ejabberd] disable registration?

Sergei Golovan sgolovan at nm.ru
Mon Jan 31 08:42:09 MSK 2005


On Mon, Jan 31, 2005 at 12:31:01AM -0500, Jiann-Ming Su wrote:
> My ejabberd.cfg file has the following lines:
> 
>   % Every username can be registered via in-band registration:
>   %{access, register, [{allow, all}]}.
> 
>   % None username can be registered via in-band registration:
>   {access, register, [{deny, all}]}.
>  
>   ...
> 
>   % Used modules:
>   {modules,
>    [
>     {mod_announce,   [{access, announce}]},
>   %  {mod_register,   [{access, register}]},
>    ]}.
> 
> Does this mean self registration is turned off?  If so, it does not
> work.  I found out this evening that a user was able to register
> himself on my ejabberd server (0.7.5).  Thanks for any tips.

I would consider this a bug (disabling mod_register should disable
registration). For now you may put the following lines:

  % Every username can be registered via in-band registration:
  %{access, register, [{allow, all}]}.

  % None username can be registered via in-band registration:
  {access, register, [{deny, all}]}.
 
  ...

  % Used modules:
  {modules,
   [
    {mod_announce,   [{access, announce}]},
    {mod_register,   [{access, register}]},
   ]}.

(Simply uncomment mod_register.) Then server will proceed jabber:iq:register
query and will forbid registration by access rule.

-- 
Sergei 'TeopeTuK' Golovan


More information about the ejabberd mailing list