Here's what I've done:

- installed dxmpp and ejabberd according to the README in Ubuntu 10.4.
- used the DRUPAL-6--2 dev branch of jQuery Update, and jQuery UI library version 1.8.5.
- added both DXMPP Chat and DXMPP Multi User Chat to the front page of my Drupal site.
- tested my xmpp accounts with Pidgin.

Problems:
- dxmpp says "0 friends online", which is not correct.
- dxmpp does not log me into ejabberd
- ejabberd logs don't show any activity coming from http-bind.

I don't understand how this is suppose to work without dxmpp having the user password for each account, nor the ejabberd admin username/password.

Comments

fizk’s picture

My server's domain name is "localhost", and BOSH URL is "http://localhost/http-bind". Browsing to http://localhost/http-bind shows the correct result page.

I've manually created an administrative ejabberd account with the same username and password as the admin user on my Drupal site.

Lev’s picture

Hello, just trying to help :

- Did you put a reverse proxy for /http-bind/ ? (you should)
- Did you manage to run Strophe library's test scripts ? (in sites/all/libraries/strophejs-1.0.1/examples/ __edit the .js and run the .html__)
- Read my issue about XHR authentication : darklrd says DXMPP builds user accounts on ejabberd at each new drupal user's login. (Using its own password, you can get it back with pidgin's admin account actions).

What does Firebug says when you're connecting ?
And with Strophe's echobot.html ?

fizk’s picture

> Did you put a reverse proxy for /http-bind/ ? (you should)

I configured apache so that visiting http://localhost/http-bind works properly

> Did you manage to run Strophe library's test scripts ? (in sites/all/libraries/strophejs-1.0.1/examples/ __edit the .js and run the .html__)

The examples worked after changing the BOSH url in the .js files to '/http-bind';

> Read my issue about XHR authentication : darklrd says DXMPP builds user accounts on ejabberd at each new drupal user's login. (Using its own password, you can get it back with pidgin's admin account actions).

I'll read up on the issue.

> What does Firebug says when you're connecting ?

yonas@localhost
null
null
GET http://localhost/js/admin_menu/cache/72cc480a24a0ebb044c80f43c63bc869
GET http://localhost/js/admin_menu/cache/72cc480a24a0ebb044c80f43c63bc869

200 OK
394ms
jquery.min.js?N (line 19)
Strophe: 1 - "_connect_cb was called"
Strophe: 1 - "_connect_cb was called"

> And with Strophe's echobot.html ?

Strophe is connecting.
Strophe is connected.
ECHOBOT: Send a message to admin@localhost/9141779571286464542247611 to talk to me.
ECHOBOT: I got a message from yonas@localhost/home: Hello World!!!!!
ECHOBOT: I sent yonas@localhost/home: Hello World!!!!!

fizk’s picture

Good news - After creating a new Drupal user, and using User Relationships to become mutual friends, I could see the other person in my roster and chat with them.

There are bugs though:
- Changing status doesn't work at all.
- A missing image in the top left corner.
- User is not logged off of xmpp when logging out of Drupal.