-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to connect to OpenFire #64
Comments
if you could provide logs what's actually going across the wire that would make helping out here a lot easier please |
POST: RESPONSE: stream:featuresDIGEST-MD5PLAINANONYMOUSCRAM-MD5zlib/stream:featuresPOST: RESPONSE: cmVhbG09ImtyYW1lciIsbm9uY2U9IjZwTDRrMWVJdHpCb3BqSmZwdDdHeERIaUU5eUpwV0hBSDBSS1NPamYiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=POST: dXNlcm5hbWU9InNhbWdvb2R5QHRoZXJhcGlzdGV4cHJlc3MuY29tIixyZWFsbT0iNjYuMjI4LjM3LjE0Iixub25jZT0iNnBMNGsxZUl0ekJvcGpKZnB0N0d4REhpRTl5SnBXSEFIMFJLU09qZiIsY25vbmNlPSI0VTdwdEIxR0p0anMwaSIsbmM9IjAwMDAwMDAxIixxb3A9YXV0aCxkaWdlc3QtdXJpPSJ4bXBwLzY2LjIyOC4zNy4xNCIscmVzcG9uc2U9Ijg0N2M5OTQyZmE3ODg0ZjY1MjBjY2RiNjVlYTg3NzA1IixjaGFyc2V0PSJ1dGYtOCI=RESPONSE: POST: RESPONSE: |
Hmm, looks like the markdown ate the code. If you can hit edit, you can see it. Thank you very much, both for the awesome work in the project, and for being so responsive. |
|
XMPP authentication works in a way that requires you to send proper domain name, that is configured on your server, even if your server is at different IP. So to connect properly, you must configure both the domain (used during the authentication) and the IP (used when connecting). So in order for authentication to work you must still provide a valid domain to JSJaC connect method (using 'domain' parameter). JSJaC will use 'domain' parameter for authentication but obviously will still connect to whatever you provide in 'httpbase', which can be completely different. |
In this case, the user is samgoody, the domain is therapistexpress.com [which I maintain, but is not on the same server], and the Jabber Server is at 66.228.37.14/ I tried setting this in simpleclient, first by using the form, then by hard-coding it into the page. The results were the same. I could repost the response, or could you suggest how I can be sure that I am sending everything correctly? Also, you can IM me or email using the gmail (my username at gmail) |
Sorry, but I don't see how using private communication would help anybody, and it won't be visible for others. Given above information, you should set HTTP base in example client as http://66.228.37.14/http-bind/ (you can also use relative URL), Jabber server as 'therapistexpress.com' and username as 'samgoody' (without the domain here). |
That's the settings I used. Am getting the same 401. The first post is:
I don't know what the "to" field is [the domain or the real server], but is it correct? Should I post the whole output again? |
Or even better - here's the URL, you already have the settings. [The password, for testing, is 1234]: |
Sorry, one more time I've considered 'Close' as a 'Cancel' button;) Will try to connect to your server to see what is happenning. |
I am sorry, but it seems that there is some problem with your server configuration. Your server advertises several authentication methods, including DIGEST-MD5 which is being chosen by JSJaC. It seems that while it works with normal XMPP connections (on port 5222, this is used by Adium) it does not work with BOSH. There is nothing that should prevent DIGEST-MD5 to work with BOSH (I've just verified that DIGEST-MD5 works properly on JSJaC with an ejabberd server). Also, I've used Pidgin to test your server (Pidgin also support BOSH). It connects successfully on port 5222, but it also fails when using BOSH (it is able to connect because Pidgin will try different authentication methods from the list while JSJaC will just stop). I believe you have following options:
|
Thanks for responding, but can you be a bit more descriptive?
I opened OpenFire and started looking for wherever DIGEST-MD5 is configured.
Thanks for your help |
I have really no idea, I've never used OpenFire. The fact is that DIGEST-MD5 works on 5222 port and does not work on BOSH. This was tested on JSJaC and Pidgin, so it hardly seems like a JSJaC problem. |
While trying to debug #64 I've found that DIGEST-MD5 does not follow RFC in some details. Some fields are quoted while grammar and examples in RFC states that they shouldn't. Additionally, add support for the realm parameter if server sends it.
Not sure if that is what solved it, since I (1) used makefile instead of just linking to src/JSJaC.js and (2) have also been playing with the settings in OpenFire, but I pulled your last changes, and now JSJaC connects beautifully. Thank you for the amazing project, and extraordinary support and attention to detail. |
The changes have nothing to do with this issue, I've made them when investigating your issue, but they did not help. I've pushed them only to align JSJaC with RFC;) |
Check your OpenFire setup, the domain name you enter for OpenFire must match the machine domain name. |
http://community.igniterealtime.org/message/233316
I am unable to connect with Adium, and curl shows no issue, but JSJaC cannot connect. 401 auth issue.
Not sure wherein the issue lies or how to debug it, but will be happy to try debugging if I am told how.
If it matters, the Jabber server is at a IP address, but the domain used by the user is not at the same address. (Ie. Jabber server is at 123.45.67.89 but the user is me@example.com)This was no issue for Adium, but could it be the issue here?
The text was updated successfully, but these errors were encountered: