ejabberd - Comments for "Disable registration access for virtual host" https://www.ejabberd.im/node/1045 en stian@jabber.ru wrote: I https://www.ejabberd.im/node/1045#comment-65012 <div class="quote-msg"> <div class="quote-author"><em>stian@jabber.ru</em> wrote:</div> <p>I found a combo that works fine, thanks teo! :)</p> <p>ACL:</p> <p> {acl,registration_allowed,{server,"jabber.no"}},<br /> {acl,registration_allowed,{server,"barmen.nu"}}</p> <p>RULE: </p> <p> {access,register,[{allow,registration_allowed},{deny,all}]}</p> <p>I might have written sth. wrong the first time. At least now it works!</p></div> <p>I tried filtering users that can only register.</p> <p>I tried this:</p> <p>ACCESS CONTROL LISTS:<br /> {acl, registrar, {user, "jed", "hostname.somewhere.com"}}.</p> <p>ACCESS RULE:<br /> {access, register, [{allow,registrar},{deny,all}]}.</p> <p>But it doesn't work.</p> <p>I hope you guys have tried this, or do you have any ideas how to implement this?</p> <p>A specific user or admin can only register.</p> <p>Thank you.</p> Wed, 17 Sep 2014 09:24:16 +0000 jedz143 comment 65012 at https://www.ejabberd.im it works! :) https://www.ejabberd.im/node/1045#comment-2221 <p>I found a combo that works fine, thanks teo! :)</p> <p>ACL:</p> <p> {acl,registration_allowed,{server,"jabber.no"}},<br /> {acl,registration_allowed,{server,"barmen.nu"}}</p> <p>RULE: </p> <p> {access,register,[{allow,registration_allowed},{deny,all}]}</p> <p>I might have written sth. wrong the first time. At least now it works!</p> Fri, 08 Sep 2006 13:15:37 +0000 stian@jabber.ru comment 2221 at https://www.ejabberd.im Another option is to use https://www.ejabberd.im/node/1045#comment-2215 <p>Another option is to use {host_config} for all virtual hosts and not to use global {modules} section at all.</p> Thu, 07 Sep 2006 03:30:58 +0000 teo comment 2215 at https://www.ejabberd.im There's a bug on host_config https://www.ejabberd.im/node/1045#comment-2213 <p>The idea is good, but there is a bug (or misfeature) in host_config that will probably prevent this from working. Explanation: <noindex><a href="http://www.jabber.ru/bugzilla/show_bug.cgi?id=241" rel="nofollow" >Bugzilla #241: New option host_config_add</a></noindex></p> Wed, 06 Sep 2006 16:00:33 +0000 mfoss comment 2213 at https://www.ejabberd.im You could load mod_register https://www.ejabberd.im/node/1045#comment-2211 <p>You could load mod_register to different virtual hosts with different options. Use </p> <pre>{host_config, "hostname", [{modules, [...]}]}.</pre><p> config file entries for that.</p> Wed, 06 Sep 2006 08:47:25 +0000 teo comment 2211 at https://www.ejabberd.im Syntax error https://www.ejabberd.im/node/1045#comment-2208 <div class="quote-msg"> <div class="quote-author"><em>stian@jabber.ru</em> wrote:</div> <p>{acl, registration_allowed, {server, "jabber.no", "barmen.nu"}}. </p></div> <p>You have to write that in two lines:</p> <pre> {acl, registration_allowed, {server, "jabber.no"}}. {acl, registration_allowed, {server, "barmen.nu"}}. </pre><p> As you wrote it, an error would be signalled while checking registration permissions, with a message showing in the log.</p> Tue, 05 Sep 2006 21:34:13 +0000 legoscia comment 2208 at https://www.ejabberd.im