XMPP in drupal. Is it really that difficult?

Events happening in the community are now at Drupal community events on www.drupal.org.
islevegan's picture

Might one be able to use jabber.org for xmpp resources in drupal?

I'd love to do that. :-)

I just read through the following article. Is all this complication really necessary? At some point there is mention of this solution being not very secure. Hmm, that does not inspire confidence.

Surely there is a better way?

http://www.dueyesterday.net/node/36?page=4

I've done a little apache configuration but even the first instruction has me lost.

"Edit your main site file and include the following information inside of a location block:"

What is the "main site file" and "location block"?

"...add the following within our Apache configuration:" where, what file, what section of the file?

3, how / where do i enable those modules?

Then a "custom patch" boggle

I've used linux at home for 4.5 yrs and have had a linode for 2+ yrs. I'm not really experienced but I'm not a total beginner.

Comments

Same here

marktheshark's picture

I have trouble following this tutorial as well.

I'm trying to authenticate user against the Drupal DB. I managed to get that far and can log in from Pidgin as a Drupal user.

No such luck from the XMPP chat client that comes with the XMPP Framework though.

Partial Solution

marktheshark's picture

I managed to have some successful XMPP sessions with one user on Drupal and one user on Pidgin by partly following the aforementioned guide.

What I did differently:

  • Used the Drupal DB for authenticating users, instead of an LDAP directory
  • Used Openfire on the same server as Apache
  • Set the following lines in the http-vhosts.conf file of my Apache installation (in the VirtualHost entry for my site):
  • ProxyRequests On
    ProxyPass /http-bind/ http://127.0.0.1:7070/http-bind/

    Contrary to the guide, what I actually needed was a proxy setting, not a redirect.

Known limitations:

  • One must configure friend lists through the user relationships module in order for the Openfire users to be able to see each other as buddies (I didn't go as far as doing this).
  • Drupal user names with spaces are a no-no for Openfire users
  • Testing on localhost proved difficult, as the XMPP Framework module did not accept this domain as valid. I had to comment out the checks in order to get it to save.

Hope this may prove of some use to someone. Due to the extent of configuration necessary I opted for a commercial chat plugin for a client that needed it. I may revisit the XMPP Framework in the future.

XMPP

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: