ejabberd - Comments for "Clustering + Mod_Rest Configuration" https://www.ejabberd.im/node/5073 en As a side note, I discovered https://www.ejabberd.im/node/5073#comment-58066 <p>As a side note, I discovered this falls apart if using Java's built in HttpURLConnection -- see <noindex><a href="http://stackoverflow.com/questions/7648872/can-i-override-the-host-header-where-using-javas-httpurlconnection-class" title="http://stackoverflow.com/questions/7648872/can-i-override-the-host-header-where-using-javas-httpurlconnection-class" rel="nofollow" >http://stackoverflow.com/questions/7648872/can-i-override-the-host-heade...</a></noindex></p> Tue, 22 Nov 2011 00:35:53 +0000 Zach Calvert comment 58066 at https://www.ejabberd.im Very nice, it does indeed https://www.ejabberd.im/node/5073#comment-58065 <p>Very nice, it does indeed work. Thank you very much for your heads up!</p> <p>For future reference, is there a document or something that I'm missing on these modules? I can't seem to find much in the way of docs on some of these ACLs and EJabberD modules.</p> Mon, 21 Nov 2011 23:27:16 +0000 Zach Calvert comment 58065 at https://www.ejabberd.im Zach Calvert wrote: {hosts, https://www.ejabberd.im/node/5073#comment-58063 <div class="quote-msg"> <div class="quote-author"><em>Zach Calvert</em> wrote:</div> <p>{hosts, ["ecs.dev", "centora"]}. </p></div> <p>This is a dirty trick. It works, I am not aware why this should be a problem initially. But please try this alternative:</p> <p>Your client sets the TCP connection to "centora", but your HTTP query should have as "Host" request header one of the XMPP domain names that you configured in ejabberd.cfg</p> <p>For example, if you have configured: {hosts, ["ecs.dev"]}.<br /> Then this should work:</p> <pre> $ telnet centora 5280 POST /rest HTTP/1.1 Host: ecs.dev Content-Length: 85 whatever </pre><p> if you try this, please confirm if it works too, or not.</p> Mon, 21 Nov 2011 20:22:24 +0000 mfoss comment 58063 at https://www.ejabberd.im Hmmm, very odd. I just https://www.ejabberd.im/node/5073#comment-58059 <p>Hmmm, very odd. I just discovered that I can simply update the hosts file to have </p> <p>{hosts, ["ecs.dev", "centora"]}.</p> <p>and it seems to allow me to create ecs.dev users even though the plugin is activated as centora. Does this leave security holes open, or am I missing something of danger here?</p> <p>Thanks,<br /> Zach Calvert</p> Mon, 21 Nov 2011 19:33:13 +0000 Zach Calvert comment 58059 at https://www.ejabberd.im