ejabberd - Comments for "mod_register/XEP-0077" https://www.ejabberd.im/node/1211 en betatesting https://www.ejabberd.im/node/1211#comment-2637 <p>After doing protocol debugging, the patch access_registrant works properly. Now only registrant user can create new accounts. All the other registration tries (users authenticated or not), server reply a message like this:</p> <pre> ... ... 77 6f 72 64 3e 3c 2f 71 75 65 72 79 3e 3c 65 72 word&gt;&lt;/query&gt;&lt;er 72 6f 72 20 63 6f 64 65 3d 27 34 30 35 27 20 74 ror code='405' t 79 70 65 3d 27 63 61 6e 63 65 6c 27 3e 3c 6e 6f ype='cancel'&gt;&lt;no 74 2d 61 6c 6c 6f 77 65 64 20 78 6d 6c 6e 73 3d t-allowed xmlns= 27 75 72 6e 3a 69 65 74 66 3a 70 61 72 61 6d 73 'urn:ietf:params 3a 78 6d 6c 3a 6e 73 3a 78 6d 70 70 2d 73 74 61 :xml:ns:xmpp-sta 6e 7a 61 73 27 2f 3e 3c 2f 65 72 72 6f 72 3e 3c nzas'/&gt;&lt;/error&gt;&lt; 2f 69 71 3e /iq&gt; </pre><p> Thank you very much for your support.</p> Fri, 01 Dec 2006 13:17:59 +0000 jacky comment 2637 at https://www.ejabberd.im You're right; try access_registrant patch https://www.ejabberd.im/node/1211#comment-2618 <div class="quote-msg"> <div class="quote-author"><em>jacky</em> wrote:</div> <p>Are you sure? Have your tried?</p></div> <p>Umm, now that I tried, you are right: on mod_register, 'access' defines what new JIDs can be registered. I didn't understood the explanation on the ejabberd guide. My fault.</p> <p>Good news: <noindex><a href="http://www.jabber.ru/bugzilla/show_bug.cgi?id=300" rel="nofollow" >New option on mod_register: who can register new accounts</a></noindex></p> <p>I haven't tried your example Perl code. I just tested this patch with Tkabber. Can you beta test this patch and report any problem with it?</p> <div class="quote-msg"> <div class="quote-author"><em>jacky</em> wrote:</div> <p>If it's true, How iq:register requests are authenticated? Only with SetFrom IQ field? Or you must send iq:register over an authenticated connection? This failed for me.</p></div> <p>From now, if you set as registrants a JID, the only way to register an account is to login with that JID, and then send the register request. </p> <p>Try it on Tkabber: login, open the Service Discovery, double click on Register.</p> Wed, 29 Nov 2006 22:06:27 +0000 mfoss comment 2618 at https://www.ejabberd.im Re: Several misconceptions :) https://www.ejabberd.im/node/1211#comment-2617 <div class="quote-msg"> <div class="quote-author"><em>badlop</em> wrote:</div> <div class="quote-msg"> <div class="quote-author"><em>jacky</em> wrote:</div> <p>means that only <noindex><a href="mailto:admin@domain.org" rel="nofollow" >admin@domain.org</a></noindex> JID could be registered.</p></div> <p>Wrong.</p> <pre>{acl, adminjid, {user, "admin", "domain.org"}}. {access, register, [{allow, adminjid}]}. {modules, [ ... {mod_register, [{access, register}]}, ... }</pre><p> This allows <noindex><a href="mailto:admin@domain.org" rel="nofollow" >admin@domain.org</a></noindex> to register accounts, any account he wants. </p></div> <p>Are you sure? Have your tried? I tried, and that was the final conclusion.<br /> If it's true, How iq:register requests are authenticated? Only with SetFrom IQ field? Or you must send iq:register over an authenticated connection? This failed for me.</p> <p>This is a code that I used to check this issue:</p> <pre> #!/usr/bin/perl use Net::Jabber qw(Client); $Connection = new Net::Jabber::Client; $status = $Connection-&gt;Connect("hostname" =&gt; "domain.org", "port" =&gt; 5222); @result = $Connection-&gt;AuthSend("username" =&gt; "admin", "password" =&gt; "pass", "resource" =&gt; "jabber"); # Build the IQ register query my $iq = new Net::Jabber::IQ(); $iq-&gt;SetType("set"); $iq-&gt;SetFrom("admin\@domain.org"); $iq-&gt;SetTo("domain.org"); my $query = $iq-&gt;NewQuery("jabber:iq:register"); $query-&gt;SetRegistered(1); $query-&gt;SetUsername("john"); $query-&gt;SetNick("john"); $query-&gt;SetPassword("hello"); $Connection-&gt;Send($iq); $Connection-&gt;Disconnect(); </pre><p> Thanks!</p> Wed, 29 Nov 2006 16:52:13 +0000 jacky comment 2617 at https://www.ejabberd.im Several misconceptions :) https://www.ejabberd.im/node/1211#comment-2613 <div class="quote-msg"> <div class="quote-author"><em>jacky</em> wrote:</div> <p>means that only <noindex><a href="mailto:admin@domain.org" rel="nofollow" >admin@domain.org</a></noindex> JID could be registered.</p></div> <p>Wrong.</p> <pre>{acl, adminjid, {user, "admin", "domain.org"}}. {access, register, [{allow, adminjid}]}. {modules, [ ... {mod_register, [{access, register}]}, ... }</pre><p> This allows <noindex><a href="mailto:admin@domain.org" rel="nofollow" >admin@domain.org</a></noindex> to register accounts, any account he wants.</p> <div class="quote-msg"> <div class="quote-author"><em>jacky</em> wrote:</div> <p>Anyway, How can I allow web register and disable register of new jid from a jabber client?</p></div> <p>Web register? Do you mean the ejabberd web admin? That's independent of mod_register.</p> <p>Note that JRT is a small Jabber client in PHP to register accounts.</p> <div class="quote-msg"> <div class="quote-author"><em>jacky</em> wrote:</div> <p>Somebody knows where is placed the JRT (Jabber registration tool) nowadays?</p></div> <p>I found this: <noindex><a href="http://www.jabberes.org/files/download/jrt-0.0.2d.tar.bz2" rel="nofollow" >jrt-0.0.2d.tar.bz2</a></noindex>.</p> Tue, 28 Nov 2006 17:16:58 +0000 mfoss comment 2613 at https://www.ejabberd.im I didn't explain it https://www.ejabberd.im/node/1211#comment-2612 <p>I didn't explain it properly. Let's imagine that we have a restricted<br /> jabber server, only personal authorized can talk and register. To<br /> register, people have to access to a web page using a login and a<br /> password and if it's correct, access is granted and he/she can register<br /> an account, any other way to register is not allowed.<br /> Allows this ejabberd (or xmpp protocol)? Or there are only two ways:<br /> register available for all, register available only for admin. Are<br /> there a register available for groups?</p> <p> I hope that this time is clear. Thanks.</p> Tue, 28 Nov 2006 13:41:43 +0000 jacky comment 2612 at https://www.ejabberd.im Just disable In-Band https://www.ejabberd.im/node/1211#comment-2604 <p>Just disable In-Band registration like described in the guide (see examples in the section about mod_register!), then only the administrator can register new users using ejabberdctl or using the web interface.</p> <p>--<br /> sander</p> Mon, 27 Nov 2006 17:13:26 +0000 sander comment 2604 at https://www.ejabberd.im