ejabberd - Comments for "baffled by BOSH" https://www.ejabberd.im/forum/29779/baffled-bosh en It was indeed TLS. Adding https://www.ejabberd.im/forum/29779/baffled-bosh#comment-67789 <p>It was indeed TLS. Adding these lines to the 5280 listener did the trick:</p> <p> tls: true<br /> certfile: 'CERTFILE'<br /> protocol_options: 'TLSOPTS'<br /> dhfile: 'DHFILE'</p> <p>Bart...</p> Mon, 05 Feb 2018 21:37:06 +0000 bartjsmit comment 67789 at https://www.ejabberd.im Thanks badlop, I spun up a https://www.ejabberd.im/forum/29779/baffled-bosh#comment-67788 <p>Thanks badlop, I spun up a vanilla ejabberd on Fedora 27 without PAM and that works. As soon as I change from:</p> <p>auth_method: internal</p> <p>to</p> <p>auth_method: pam<br /> pam_service: "ejabberd"</p> <p>I get "Authentication method not supported" from the client. I did notice that I get the same error on normal connections over 5222, so there is another difference between PAM and internal. My guess is TLS, since I used this on the first server and got a connection on 5222.</p> <p>I'll do some more testing and will keep this thread updated (if only for posterity)</p> <p>Bart...</p> Mon, 05 Feb 2018 20:26:06 +0000 bartjsmit comment 67788 at https://www.ejabberd.im I'm testing with ejabberd https://www.ejabberd.im/forum/29779/baffled-bosh#comment-67786 <p>I'm testing with ejabberd 18.01. I guess there aren't relevant changes since your version.</p> <div class="quote-msg"> <div class="quote-author"><em>bartjsmit</em> wrote:</div> <p>- Do I use /http-bind or /bosh in the connection URL? Is there even any meaning in either name, as long as the server and the client use the same?</p></div> <p>That URL has no meaning, simply set the same in server and clients.</p> <div class="quote-msg"> <div class="quote-author"><em>bartjsmit</em> wrote:</div> <p>- Do I need an Apache reverse proxy? I allow 5280 through the firewall. Swift has a manual proxy option</p></div> <p>I have no web server or anything else than ejabberd to connect a BOSH client to ejabberd, as ejabberd already includes the Web service required.</p> <div class="quote-msg"> <div class="quote-author"><em>bartjsmit</em> wrote:</div> <p>- Does anybody have a snippet of their conf file that is necessary and sufficient to run BOSH?</p></div> <pre> listen: ... - port: 5280 module: ejabberd_http request_handlers: "/bosh": mod_bosh modules: ... mod_bosh: {} </pre><p> Then use <noindex><a href="http://localhost:5280/bosh/" title="http://localhost:5280/bosh/" rel="nofollow" >http://localhost:5280/bosh/</a></noindex> as URL for BOSH in your client. It works for me using Tkabber and Gajim.</p> Mon, 05 Feb 2018 12:46:00 +0000 badlop comment 67786 at https://www.ejabberd.im