i've installed the xmppframework alongside ejabberd on my localhost.
my jabber server is working fine, i am able to connect to it using a desktop jabber client, and register new users / log-in etc..

i'm now trying to connect using the XW Chat module provided in the xmppframework but am having some issues:

i've enabled the proxy modules -

LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_module modules/mod_proxy.so

i've also added a rewrite rule for my localhost virtual host in my .conf file for the following -

RewriteEngine on
RewriteRule http-bind/ http://localhost:5280/http-bind/ [P]

to route any calls to http-bind through the jabber server.

i've got the following settings in the client settings page -

mode - httpbind
authtype - nonsasl
conf server - conference.localhost
user directory - vjud.localhost
server domain - localhost

in the xmppAPI settings page i also have the following -

server - localhost
port - 5280
admin jid - admin
admin jid password - admin
admin jid server - localhost

when i try connecting through the chat client firebug disconnects the connection with the following response -

  invalid response: <body type='terminate' xmlns='http://jabber.org/protocol/httpbind'/>

in my POST request there is the following -


<body hold='1' xmlns='http://jabber.org/protocol/httpbind' to='null' wait='300' rid='194652' route='xmpp
:null:5222' secure='false' newkey='27aabb2a8ff8f44d88c630f4567645d8a954382c' ver='1.6' xmlns:xmpp='urn
:xmpp:xbosh'/>

can't help but thinking the problem lies in the to='null' and route='xmpp
:null:5222'
parts, any idea what i could be doing wrong or how to get this up and running so it will successfully connect to my jabber server?

thanks.

Comments

darren.ferguson’s picture

See if you can get the information that is sent to the server when it tries to log in. This looks like nothing is being sent to the ejabberd server.

We utilize only ejabberd with this hence it should work correctly.

merilainen’s picture

I'm running with similar settings on our dev-server. No luck yet getting XWchat working, ejabberd is up and running.

One thing came to my mind, should admin jid be admin@localhost? Not plain admin.

merilainen’s picture

Now we got connection to the ejabberd server also through Drupal XWChat client.

darren.ferguson, try this rewrite rule:
RewriteRule ^/http-bind/ http://localhost:5280/http-bind/ [P]

Notice ^/ at the beginning compared to the rule you posted.

At the moment we have a problem that the module doesn't create accounts for Drupal users to ejabberd database. When is this supposed to happen? When user logs in? Or when new users are created? Maybe we have a problem with XMPP API settings, but I have tried with admin jids admin and admin@localhost. Everything works fine if I create users with ejabberd Web Admin for Drupal users.

Have to start examining the code because of lack of documentation...

darren.ferguson’s picture

Status: Active » Closed (fixed)
otsuarez’s picture

I'm having problems getting xwchat to play with ejabberd. The ejabberd works ok with the pidgin im client and with jwchat (so http-bind is ok).

The error is on the authentication phase.
The xwchat gave me this error: "Wrong combination Username / Password Disconnected from Server". The ejabberd logs showed this (the legacy notice is because i'm not using sasl):
I(<0.438.0>:ejabberd_c2s:478) : ({socket_state,ejabberd_http_bind,{http_bind,<0.436.0>},<0.437.0>}) Failed legacy authentication for osvaldo@xmpp.example.com/null

Using ubuntu 8.04, drupal acquia 6.10, apache 2.2.8-1 and ejabberd 2.0.1 installed from the hardy backports (so loglevel feature could be used ;)

I noticed that xwchat is doing http requests to /xmppclient/password but that url only shows an empty page.
Could anyone help to find out what's happening?

IckZ’s picture

try to set sasl connection instead of nonsasl