I installed the http-bind module from svn (r872) to our ejabberd 1.1.4 test server, and configured it as follows.
{listen,
[
...
{5280, ejabberd_http, [
http_poll,
web_admin,
{request_handlers, [{ ["http-bind"], mod_http_bind } ]}
]}
...
]}.
...
{modules,
[
...
{mod_http_bind, []},
...
]}.
The erlang syntax parses OK, and the server starts up and is able to handle normal connections.
However, after configuring JWChat to use http-bind, the client just gives a "Service Unavailable" error and doesn't log in.
The external authentication script is not being invoked. The ejabberd.log shows the connection and the POST to http-bind. This server is built with debugging enabled, and I uncommented '-define(ejabberd_debug, true).' from ejabberd_http_bind.erl and mod_http_bind.erl before building it.
=INFO REPORT==== 2009-02-05 12:15:23 ===
I(<0.207.0>:ejabberd_listener:90): (#Port<0.614>) Accepted connection {{xxxxx},61918} -> {{xxxxx},5280}
=INFO REPORT==== 2009-02-05 12:15:23 ===
I(<0.200.0>:ejabberd_http:76): started: {gen_tcp,#Port<0.614>}
=INFO REPORT==== 2009-02-05 12:15:23 ===
I(<0.665.0>:ejabberd_http:175): (#Port<0.614>) http query: 'POST' /http-bind/
Is there any way to get more debugging information so that I can determine what the problem is?
http_bind requires ejabberd 2.0.0 or newer
I installed the http-bind module from svn (r872) to our ejabberd 1.1.4 test server, and configured it as follows.
{listen,
[
...
{5280, ejabberd_http, [
http_poll,
web_admin,
{request_handlers, [{ ["http-bind"], mod_http_bind } ]}
]}
...
The http-bind module requires ejabberd 2.0.0 or newer, and is included since then.
The option 'request_handlers' is not mentioned in the ejabberd 1.1.4 Guide because that feature was not yet implemented.
http-bind requires ejabberd 2.0
The http-bind module requires ejabberd 2.0.0 or newer, and is included since then.
I thought that might be the case, but the README file didn't mention this requirement, so I second guessed it and assumed that meant it would work with 1.1.4.
Explanation added to README.txt
The http-bind module requires ejabberd 2.0.0 or newer, and is included since then.
I thought that might be the case, but the README file didn't mention this requirement, so I second guessed it and assumed that meant it would work with 1.1.4.
Ah, right. It's easy to document and prevents such misleadings. I've explained in the README.txt of http_bind.