ejabberd - Comments for "No response on iq:register when successful" https://www.ejabberd.im/node/5064 en Seems a bug. Probably in the https://www.ejabberd.im/node/5064#comment-58109 <p>Seems a bug. Probably in the code that you added.</p> Tue, 06 Dec 2011 12:33:20 +0000 mfoss comment 58109 at https://www.ejabberd.im After some testing I found an https://www.ejabberd.im/node/5064#comment-58095 <p>After some testing I found an error in the log file:</p> <p>=ERROR REPORT==== 2011-12-05 14:05:18.272 ===<br /> E(&lt;0.331.0&gt;:gen_iq_handler:118) : {function_clause,<br /> [{inet_parse,ntoa,<br /> [{"jadmin","localhost",[]}]},<br /> {mod_register,<br /> send_registration_notifications,2},<br /> {mod_register,try_register,5},<br /> {mod_register,<br /> try_register_or_set_password,9},<br /> {gen_iq_handler,process_iq,6},<br /> {gen_iq_handler,handle_info,2},<br /> {gen_server,handle_msg,5},<br /> {proc_lib,init_p_do_apply,3}]}</p> <p>and after disabling this line :</p> <div class="codeblock"><code>&nbsp; {registration_watchers, [&quot;jadmin@localhost&quot;]}, </code></div> <p>everything works fine. Is my syntax wrong or is this a bug?</p> Mon, 05 Dec 2011 13:58:16 +0000 Tomcat comment 58095 at https://www.ejabberd.im I tried it again from another https://www.ejabberd.im/node/5064#comment-58080 <p>I tried it again from another programm language, but the result is the same. Here is the log of the messages. After that the account is created, but I don't get a package telling me this. I'm only getting a response, when something goes wrong. Any idea what i'm doing wrong? </p> <div class="codeblock"><code>2011-11-25 17:20:30.4981 DEBUG: Send : &lt;iq type=&quot;get&quot; to=&quot;localhost&quot; id=&quot;12345&quot; xmlns=&quot;jabber:client&quot;&gt;<br />&nbsp; &lt;query xmlns=&quot;jabber:iq:register&quot; /&gt;<br />&lt;/iq&gt;<br />2011-11-25 17:20:30.5121 DEBUG: Received : &lt;iq xmlns=&quot;jabber:client&quot; from=&quot;localhost&quot; to=&quot;jadmin@localhost/PROTEL-JANTH&quot; id=&quot;12345&quot; type=&quot;result&quot;&gt;<br />&nbsp; &lt;query xmlns=&quot;jabber:iq:register&quot;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;instructions&gt;Choose a username and password to register with this server&lt;/instructions&gt;<br />&nbsp;&nbsp;&nbsp; &lt;username&gt;jadmin&lt;/username&gt;<br />&nbsp;&nbsp;&nbsp; &lt;password /&gt;<br />&nbsp;&nbsp;&nbsp; &lt;registered /&gt;<br />&nbsp; &lt;/query&gt;<br />&lt;/iq&gt;<br />2011-11-25 17:20:32.8902 DEBUG: Send : &lt;iq type=&quot;set&quot; to=&quot;localhost&quot; id=&quot;64789&quot; xmlns=&quot;jabber:client&quot;&gt;<br />&nbsp; &lt;query xmlns=&quot;jabber:iq:register&quot;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;username&gt;Test1&lt;/username&gt;<br />&nbsp;&nbsp;&nbsp; &lt;password&gt;bla&lt;/password&gt;<br />&nbsp; &lt;/query&gt;<br />&lt;/iq&gt;</code></div> <p>Could any config-parameter change the behaviour? Here are my differences to the example-config:</p> <div class="codeblock"><code>%% In-band registration allows registration of any possible username.<br />%% To disable in-band registration, replace &#039;allow&#039; with &#039;deny&#039;.<br />{access, register_from, [{allow, admin}]}. <p>%% By default the frequency of account registrations from the same IP<br />%% is limited to 1 account every 10 minutes. To disable, specify: infinity<br />{registration_timeout, 0}.</p></code></div> <p>and</p> <div class="codeblock"><code> &nbsp; %%<br /> &nbsp; %% When a user registers, send a notification to<br /> &nbsp; %% these XMPP accounts.<br /> &nbsp; %%<br /> &nbsp; {registration_watchers, [&quot;jadmin@localhost&quot;]}, <p> &nbsp; %%<br /> &nbsp; %% Only clients in the server machine can register accounts<br /> &nbsp; %%<br />%% &nbsp; {ip_access, [{allow, &quot;192.168.0.0/16&quot;},<br />%% &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {deny, &quot;0.0.0.0/0&quot;}]},</p> <p> &nbsp; %%<br /> &nbsp; %% Local c2s or remote s2s users cannot register accounts<br /> &nbsp; %%<br /> &nbsp; {access_from, register_from},</p></code></div> Fri, 25 Nov 2011 16:31:14 +0000 Tomcat comment 58080 at https://www.ejabberd.im Tomcat wrote: My problem now https://www.ejabberd.im/node/5064#comment-58057 <div class="quote-msg"> <div class="quote-author"><em>Tomcat</em> wrote:</div> <p>My problem now is, that the user is created, but ejabberd doesn't tell me that. I'd expect something like </p> <div class="codeblock"><code>&lt;iq type=&#039;result&#039; id=&#039;CEoU6-8&#039;/&gt;</code></div> <p>but that message isn't sent. </p></div> <p>It's strange that you don't get an Iq Result. I tried with ejabberd 2.1.9, and the query receives a response:</p> <pre> &lt;iq id='2:456312' type='set' to='localhost'&gt; &lt;query xmlns='jabber:iq:register'&gt; &lt;username&gt;user11123&lt;username&gt; &lt;password&gt;mypass11&lt;password&gt; &lt;query&gt; &lt;iq&gt; &lt;iq from='localhost' to='user@localhost/tka' id='2:456312' type='result'&gt; &lt;query xmlns='jabber:iq:register'&gt; &lt;username&gt;user11123&lt;username&gt; &lt;password&gt;mypass11&lt;password&gt; &lt;query&gt; &lt;iq&gt; </pre> Mon, 21 Nov 2011 16:28:58 +0000 mfoss comment 58057 at https://www.ejabberd.im