Hey,
I have this about 70% working I think. I have 2 servers, one is mysite.com with my drupal site. The other is talk.mysite.com with my xmpp server.
Whats working:
- I can login and create new user accounts on my xmpp server via pidgin
- my reverse proxy on talk.mysite.com to http-bind
- my drupal site creates users on xmpp just fine
Whats not working:
- cant connect with strophe to the xmpp (with basic, crossdomain, or echobot.html).
When I go to talk.mysite.com:5229/crossdomain.xml with firefox I get this error:
XML Parsing Error: not well-formed
Location: http://talk.mysite.com:5229/crossdomain.xml
Line Number 1, Column 211:
When I view the page source I can see the xml that looks like:
<?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"><cross-domain-policy><allow-access-from domain="*" to-ports="5222" /></cross-domain-policy>
I am using openfire (I tired with ejabberd as well and had the same exact issues). I'm not sure what I need to do now. Any suggestions?
Comments
Comment #1
that0n3guy CreditAttribution: that0n3guy commentedOk, so I realized I have a crossdomain.xml at this url: http://talk.mysite.com:7070/crossdomain.xml
So I added a proxy and reverse for that file in my apache2 proxy.conf. This is the stuff I added now:
Now storphe's crossdomain example does this:
Horray, I get a reply (never did before)... I had to use jid of "test3", not "test4@talk.mysite.com". This won't connect everytime though. Sometimes I get:
Also, I noticed I can not connect to the server with pidgin using accounts that were created by drupal. In my xmpp server logs I get: "User Login Failed. PLAIN authentication failed". Though it looks like I can connect to those accounts with strophe's crossdomain.html.
One thing to note... in crossdomain.js I had to have a '/' slash on the end, like so "http://talk.mysite.com/http-bind/".... Is this also the case in admin/settings/dxmpp?
I'm almost there! Strophe looks like it can connect, but drupal still cant... not sure why.
Comment #2
that0n3guy CreditAttribution: that0n3guy commentedOk, I think strophe isn't really connecting.. I put in a completely wrong password into crossdomain.html and it still acted like it connected (like the first example above).
When I try a true jid (like: test39@talk.mysite.com.com), I get this: